File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,12 @@ def get_paste(id):
9393 connection .close ()
9494
9595 return jsonify ({
96+ 'id' : str (id ),
9697 'author' : str (author ),
97- 'text' : text ,
98- 'language' : language ,
99- 'type' : type ,
100- 'date' : date
98+ 'text' : str ( text ) ,
99+ 'language' : str ( language ) ,
100+ 'type' : str ( type ) ,
101+ 'date' : str ( date )
101102 })
102103
103104@app .route ('/v1/pastebin/all' , methods = ['GET' ])
@@ -117,10 +118,10 @@ def get_all_pastes():
117118 all_pastes .append ({
118119 'id' : str (id ),
119120 'author' : str (author ),
120- 'text' : text ,
121- 'language' : language ,
122- 'type' : type ,
123- 'date' : date
121+ 'text' : str ( text ) ,
122+ 'language' : str ( language ) ,
123+ 'type' : str ( type ) ,
124+ 'date' : str ( date )
124125 })
125126
126127 return jsonify ({
You can’t perform that action at this time.
0 commit comments