Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Apr 25, 2022
1 parent 1d876af commit 5a68fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions revitron/analyze/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def add(self, dataProviderResults, modelSize):
rowId = 1
remoteItems = self._get('items/{}'.format(self.collection))
if remoteItems:
latestRow = max(remoteItems, key=lambda x: x['id'])
rowId = latestRow['id'] + 1
maxId = max(row['id'] for row in remoteItems)
rowId = maxId + 1
if self._getRemoteCollection() is None:
self._createMissingCollection()
self._createMissingFields(dataProviderResults)
Expand Down

0 comments on commit 5a68fe6

Please sign in to comment.