Skip to content

Commit 81e9087

Browse files
committed
Initialize tables before creating paste.
1 parent 8cdefa8 commit 81e9087

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## Pastebin
2+
The mission of the project is to provide a tool to create and share text/code snippets.

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def ping():
3434

3535
@app.route('/v1/pastebin/save', methods = ['POST'])
3636
def save_paste():
37+
initialize_tables()
38+
3739
try:
3840
data = request.get_json()
3941

0 commit comments

Comments
 (0)