mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
no need for ternary clause
This commit is contained in:
@ -186,6 +186,6 @@ def parse_datetime_to_timestamp(data):
|
||||
|
||||
if timestamp_naive:
|
||||
timestamp_obj['timestamp_naive'] = timestamp_naive
|
||||
timestamp_obj['timestamp_utc'] = timestamp_utc if timestamp_utc else None
|
||||
timestamp_obj['timestamp_utc'] = timestamp_utc
|
||||
|
||||
return timestamp_obj if timestamp_obj else None
|
||||
|
Reference in New Issue
Block a user