summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Snapshots/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Snapshots/model.py')
-rw-r--r--src/lib/Server/Snapshots/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Snapshots/model.py b/src/lib/Server/Snapshots/model.py
index d996812c6..ca67d4f2e 100644
--- a/src/lib/Server/Snapshots/model.py
+++ b/src/lib/Server/Snapshots/model.py
@@ -233,7 +233,7 @@ class Snapshot(Base):
def from_data(cls, session, correct, revision, metadata, entries, extra):
dbm = Metadata.from_metadata(session, metadata)
snap = cls(correct=correct, client_metadata=dbm, revision=revision,
- timestamp=datetime.datetime.now())
+ timestamp=datetime.datetime.now(), client=dbm.client)
for (dispatch, data) in [(cls.c_dispatch, entries),
(cls.e_dispatch, extra)]:
for key in dispatch: