Skip to content

Commit

Permalink
Convert port to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
ullebe1 committed Oct 26, 2020
1 parent 1b5dedb commit a22645a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dagensdatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,4 @@ def get_pictures(n=10):
return sorted(pictures, key=lambda p: datetime.datetime.strptime(p['date'], "%d-%m-%Y").date(), reverse=True)[:n]

if __name__ == '__main__':
app.run(host='0.0.0.0', port=(os.environ.get('DAGENSDATALOG_PORT') or 5000))
app.run(host='0.0.0.0', port=(int(os.environ.get('DAGENSDATALOG_PORT')) or 5000))

0 comments on commit a22645a

Please sign in to comment.