Browse Source

Added wsgi script

head_fix
sqozz 7 years ago
parent
commit
ae96b0c268
  1. 2
      schort.py
  2. 4
      schort.wsgi

2
schort.py

@ -28,7 +28,7 @@ def short(shortLink=""):
def insertIdUnique(idToCheck, longUrl):
hashUrl = hashlib.sha256(longUrl.encode()).digest()
base64Url = base64.b64encode(hashUrl).decode()
base64Url = base64.urlsafe_b64encode(hashUrl).decode()
if len(idToCheck) == 0:
idToCheck = base64Url[:4]

4
schort.wsgi

@ -0,0 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import schort
application = schort.app.wsgi_app
Loading…
Cancel
Save