forked from 0x2620/pandora
dont count first time 2x
This commit is contained in:
parent
c216716493
commit
43b2bfde55
2 changed files with 3 additions and 1 deletions
|
@ -1162,6 +1162,7 @@ attrs = {
|
|||
'duration': models.FloatField(null=True, blank=True, db_index=True),
|
||||
'width': models.BigIntegerField(null=True, blank=True, db_index=True),
|
||||
'height': models.BigIntegerField(null=True, blank=True, db_index=True),
|
||||
'created': models.DateTimeField(null=True, blank=True, db_index=True),
|
||||
}
|
||||
for key in filter(lambda k: 'columnWidth' in k or k['type'] in ('integer', 'time', 'float', 'date', 'enum'), settings.CONFIG['itemKeys']):
|
||||
name = key['id']
|
||||
|
|
|
@ -696,6 +696,7 @@ def setUI(request):
|
|||
access, created = Access.objects.get_or_create(item=item, user=request.user)
|
||||
else:
|
||||
access, created = Access.objects.get_or_create(item=item, user=None)
|
||||
if not created:
|
||||
access.save()
|
||||
|
||||
response = json_response()
|
||||
|
|
Loading…
Reference in a new issue