Skip to content

Commit bbb68ce

Browse files
authored
Merge pull request #289 from JohnMulligan/dataviz
Data viz endpoint updates
2 parents 6f6e85a + 3e863b7 commit bbb68ce

7 files changed

Lines changed: 1557 additions & 133 deletions

File tree

src/api/blog/serializers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ def media_uploads_sub(html):
4444
an image in the blog post at the front-end site, naturally, rather than here. we
4545
rewrite the html before returning it (until i can find a better system).
4646
'''
47-
print(html)
4847
site_storage_base_url_no_leading_slash=re.sub("^/","",site_storage_base_url)
4948
media_uploads_baseurl=f"{OPEN_API_BASE_URL}{site_storage_base_url_no_leading_slash}"
5049
clean_html=re.sub(f"(?<=src=\").*?{site_storage_base_url}",media_uploads_baseurl,html)
5150
clean_html=re.sub(f"(?<=href=\").*?{site_storage_base_url}",media_uploads_baseurl,clean_html)
52-
print(clean_html)
5351
return clean_html
5452

5553
class PostSerializer(serializers.ModelSerializer):

0 commit comments

Comments
 (0)