Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Commit 861c33b

Browse files
committed
Fix GitHub markdown, update deps
1 parent 92cb42c commit 861c33b

File tree

3 files changed

+187
-173
lines changed

3 files changed

+187
-173
lines changed

dribdat/apifetch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def FetchGithubProject(project_url):
5353
readme
5454
)
5555
readme = re.sub(
56-
r"\!\[\]\((?!http)",
57-
"![](https://raw.githubusercontent.com/" + json['full_name'] + '/master/',
56+
r"\!\[(.*)\]\((?!http)",
57+
"![\g<1>](https://raw.githubusercontent.com/" + json['full_name'] + '/master/',
5858
readme
5959
)
6060
return {

dribdat/public/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def project_push_json():
234234
project.longtext = data['longtext']
235235
if 'autotext_url' in data and data['autotext_url'].startswith('http'):
236236
project.autotext_url = data['autotext_url']
237-
if not project.source_url or project.source_url is '':
237+
if not project.source_url or project.source_url == '':
238238
project.source_url = data['autotext_url']
239239
if 'levelup' in data and 0 < project.progress + data['levelup'] * 10 < 50: # MAX progress
240240
project.progress = project.progress + data['levelup'] * 10

0 commit comments

Comments
 (0)