dont count first time 2x

This commit is contained in:
j 2011-11-11 14:04:15 +01:00
parent c216716493
commit 43b2bfde55
2 changed files with 3 additions and 1 deletions

View file

@ -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']

View file

@ -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()