Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
url_shorter_docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
url_shorter_docker
Commits
41bbb3a9
Commit
41bbb3a9
authored
Oct 22, 2019
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
added library, which was accidentially removed
parent
94e50bf9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
main.py
+1
-0
1 addition, 0 deletions
main.py
with
2 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
41bbb3a9
...
@@ -9,3 +9,4 @@ __pycache__/
...
@@ -9,3 +9,4 @@ __pycache__/
builddate.txt
builddate.txt
db/urls.db-journal
db/urls.db-journal
.vscode/settings.json
This diff is collapsed.
Click to expand it.
main.py
+
1
−
0
View file @
41bbb3a9
...
@@ -6,6 +6,7 @@ import os #Used for getting the enviorement variables
...
@@ -6,6 +6,7 @@ import os #Used for getting the enviorement variables
import
qrcode
#Used to generate the QR
import
qrcode
#Used to generate the QR
import
base64
#Used to encode the generated QR as base64, to directly insert it into the HTML
import
base64
#Used to encode the generated QR as base64, to directly insert it into the HTML
from
io
import
BytesIO
#Needed for base64 encoding of the image
from
io
import
BytesIO
#Needed for base64 encoding of the image
from
PIL
import
Image
#Needed for QR generation
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
domain_to_index
=
{}
domain_to_index
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment