Skip to content

Commit

Permalink
فصل شرط مقارنة التاريخ والقيمة المالية في شرطين منفصلين
Browse files Browse the repository at this point in the history
  • Loading branch information
vzool committed Jul 29, 2024
1 parent 231e0cb commit c04c4d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zakat/zakat_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1924,8 +1924,10 @@ def import_csv(self, path: str = 'file.csv', debug: bool = False) -> tuple:
except:
pass
# TODO: not allowed for negative dates in the future after enhance time functions
if date == 0 or value == 0:
if date == 0:
bad[i] = row + ['invalid date']
if value == 0:
bad[i] = row + ['invalid value']
continue
if date not in data:
data[date] = []
Expand Down

0 comments on commit c04c4d6

Please sign in to comment.