Skip to content

Commit 0ae6489

Browse files
authored
Fix oneshot detection without oneshot_indexes (#426)
1 parent c3f4a56 commit 0ae6489

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog],
66
and this project adheres to [Semantic Versioning].
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- config: Fixed oneshot detection without `oneshot_indexes`.
13+
814
## [5.2.3] - 2022-07-07
915

1016
### Added

src/dipdup/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def oneshot(self) -> bool:
12781278
"""Whether all indexes have `last_level` field set"""
12791279
syncable_indexes = tuple(c for c in self.indexes.values() if not isinstance(c, HeadIndexConfig))
12801280
oneshot_indexes = tuple(c for c in syncable_indexes if c.last_level)
1281-
if len(oneshot_indexes) == len(syncable_indexes):
1281+
if len(oneshot_indexes) == len(syncable_indexes) > 0:
12821282
return True
12831283
return False
12841284

0 commit comments

Comments
 (0)