Skip to content

Commit

Permalink
now templates are downloaded from prod repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaaoBlues committed Jun 23, 2022
1 parent 015ecaf commit 2d96e37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,19 @@ def is_server_already_running():
def download_templates():

#get the templates
r = get(f"https://raw.githubusercontent.com/thaaoblues/copypasta/master/templates/index.html",allow_redirects=True)
r = get(f"https://raw.githubusercontent.com/copypastaofficial/copypasta/master/templates/index.html",allow_redirects=True)
with open("templates/index.html","wb") as f:
f.write(r.content)

r = get(f"https://raw.githubusercontent.com/thaaoblues/copypasta/master/templates/scan_preview.html",allow_redirects=True)
r = get(f"https://raw.githubusercontent.com/copypastaofficial/copypasta/master/templates/scan_preview.html",allow_redirects=True)
with open("templates/scan_preview.html","wb") as f:
f.write(r.content)

r = get(f"https://raw.githubusercontent.com/thaaoblues/copypasta/master/templates/img_preview.html",allow_redirects=True)
r = get(f"https://raw.githubusercontent.com/copypastaofficial/copypasta/master/templates/img_preview.html",allow_redirects=True)
with open("templates/img_preview.html","wb") as f:
f.write(r.content)

r = get(f"https://raw.githubusercontent.com/thaaoblues/copypasta/master/templates/favicon.ico",allow_redirects=True)
r = get(f"https://raw.githubusercontent.com/copypastaofficial/copypasta/master/templates/favicon.ico",allow_redirects=True)
with open("static/favicon.ico","wb") as f:
f.write(r.content)

Expand Down

0 comments on commit 2d96e37

Please sign in to comment.