fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a5c7019
)
fix progress sync
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 19 Aug 2025 13:22:47 +0000
(15:22 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 19 Aug 2025 13:22:47 +0000
(15:22 +0200)
src/social/models.py
patch
|
blob
|
history
diff --git
a/src/social/models.py
b/src/social/models.py
index
2692538
..
b0f2f7f
100644
(file)
--- a/
src/social/models.py
+++ b/
src/social/models.py
@@
-244,7
+244,8
@@
class Progress(Syncable, models.Model):
def create_from_data(cls, user, data):
return cls.objects.create(
user=user,
def create_from_data(cls, user, data):
return cls.objects.create(
user=user,
- book=data['book']
+ book=data['book'],
+ reported_timestamp=now(),
)
def save(self, *args, **kwargs):
)
def save(self, *args, **kwargs):