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

Commit

Permalink
fix(redmine): fix value check for custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
trowik committed Mar 15, 2023
1 parent 5e51b67 commit 5f6bc53
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions timed/redmine/management/commands/import_project_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,10 @@ def handle(self, *args, **options):
)

timed_project.amount_offered = (
amount_offered["value"]
if amount_offered != ""
else timed_project.amount_offered
amount_offered.get("value") or timed_project.amount_offered
)
timed_project.amount_invoiced = (
amount_invoiced["value"]
if amount_invoiced != ""
else timed_project.amount_invoiced
amount_invoiced.get("value") or timed_project.amount_invoiced
)
if not pretend:
timed_project.save()
Expand Down

0 comments on commit 5f6bc53

Please sign in to comment.