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

fix(ui): use correct action button for themerr provided items #220

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading