Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstanke authored Jul 16, 2020
1 parent 98c11c7 commit b4b3d0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
Column('username', String(255)),
Column('post_id', BigInteger, primary_key=True),
Column('shortcode', String(255)),
Column('direct_link', String(255)),
Column('caption', String(5000)),
Column('display_url', String(255)),
Column('thumbnail_src', String(1200)),
Column('direct_link', String(2047)),
Column('caption', String(8191)),
Column('display_url', String(2047)),
Column('thumbnail_src', String(2047)),
Column('date_added', DATETIME(timezone=True),
server_default=func.now()),
mysql_charset='utf8mb4')

media = Table('media', metadata,
Column('post_id', BigInteger, primary_key=True),
Column('display_url', String(255)),
Column('path', String(1200)),
Column('path', String(2047)),
Column('date_added', DATETIME(timezone=True),
server_default=func.now()),
mysql_charset='utf8mb4')
Expand Down Expand Up @@ -164,4 +164,4 @@ def purge_all():
return redirect(url_for('displayPosts'))

if __name__ == "__main__":
app.run(debug=True, host='0.0.0.0', port=int(os.environ.get('PORT', 8080)))
app.run(debug=True, host='0.0.0.0', port=int(os.environ.get('PORT', 8080)))

0 comments on commit b4b3d0f

Please sign in to comment.