Skip to content

Commit

Permalink
Do not store duplicated fields (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierteres authored Nov 2, 2023
1 parent 39279b7 commit dbdfb1a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cchloader/backends/timescaledb.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ def insert_cch_batch(self, collection, curves):
batch = []
for curve in curves:
curve.update({
'create_at': datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'update_at': datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'create_date': datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'create_uid': 1,
'utc_timestamp': get_as_utc_timestamp(curve['datetime'], curve['name'], curve.get('season')).strftime('%Y-%m-%d %H:%M:%S')
Expand Down

0 comments on commit dbdfb1a

Please sign in to comment.