Skip to content

Commit

Permalink
fix route
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoolano committed Jan 11, 2024
1 parent b91192f commit a6a27a7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions feedi/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,20 @@ def entry_recycle(id):
# skip hashtag and profile links
if not text.startswith('#') and not text.startswith('@')]
if links:
subentry = models.Entry.from_url(current_user.id, links[0])
entry.viewed = datetime.datetime.now()
db.session.add(subentry)
db.session.commit()
return flask.render_template('entry_list_page.html',
entries=[subentry])
for link in links:
try:
subentry = models.Entry.from_url(current_user.id, link)
entry.viewed = datetime.datetime.now()
db.session.add(subentry)
db.session.commit()
return flask.render_template('entry_list_page.html',
entries=[subentry])
except Exception:
continue

entry.backlog()
db.session.commit()
return '', 204
return '', 200


@app.delete("/backlog/<int:id>")
Expand Down

0 comments on commit a6a27a7

Please sign in to comment.