Skip to content

Commit e6a2963

Browse files
committed
Write the config during status initialisation
1 parent e6df862 commit e6a2963

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scan_to_paperless/status.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,15 @@ def set_status(
165165
def _init(self) -> None:
166166
"""Scan for changes for waiting documents."""
167167
self._update_scan_codes()
168+
self.write()
168169
self._update_consume()
170+
self.write()
169171

170172
for folder_name in glob.glob(os.path.join(self._source_folder, "*")):
171173
if os.path.isdir(folder_name):
172174
name = os.path.basename(folder_name)
173175
self._update_source_error(name)
174-
175-
self.write()
176+
self.write()
176177

177178
def _update_status(self, name: str) -> None:
178179
yaml = YAML(typ="safe")

0 commit comments

Comments
 (0)