Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix(ui): use correct action button for themerr provided items
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Nov 16, 2023
1 parent 1891d60 commit f1828cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Contents/Code/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ def home():
item_agent = database_info[2]
database_id = database_info[3]

og_db = database
og_db_id = database_id

try:
year = item.year
except AttributeError:
Expand Down Expand Up @@ -320,7 +323,10 @@ def home():
item_issue_url = issue_url.format(issue_title, database_id if database_id else '')

if database_type and themerr_db_helper.item_exists(
database_type=database_type, database=database, id=database_id):
database_type=database_type,
database=og_db,
id=og_db_id,
):
issue_action = 'edit'
else:
issue_action = 'add'
Expand Down

0 comments on commit f1828cb

Please sign in to comment.