forked from 0x2620/pandora
merging changes
This commit is contained in:
commit
63cb6039d3
3 changed files with 11 additions and 7 deletions
|
@ -20,8 +20,8 @@ class Command(BaseCommand):
|
|||
def handle(self, **options):
|
||||
offset = 0
|
||||
chunk = 100
|
||||
pos = models.Item.objects.count()
|
||||
while offset <= models.Item.objects.count():
|
||||
count = pos = models.Item.objects.count()
|
||||
while offset <= count:
|
||||
for i in models.Item.objects.all().order_by('id')[offset:offset+chunk]:
|
||||
print pos, i.itemId
|
||||
i.save()
|
||||
|
|
|
@ -225,6 +225,7 @@ Positions
|
|||
|
||||
query = parse_query(data, request.user)
|
||||
qs = order_query(query['qs'], query['sort'])
|
||||
qs = qs.distinct()
|
||||
if 'keys' in data:
|
||||
qs = qs[query['range'][0]:query['range'][1]]
|
||||
response['data']['items'] = [p.json(data['keys'], request.user) for p in qs]
|
||||
|
|
|
@ -5,14 +5,17 @@
|
|||
body {
|
||||
text-align: center;
|
||||
padding-top: 96px;
|
||||
background: #101010;
|
||||
color: #F0F0F0;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="/static/oxjs/build/Ox.UI/css/Ox.UI.css"/>
|
||||
<title>We'll be back in a minute</title>
|
||||
</head>
|
||||
<body>
|
||||
<img src="http://pan.do/png/pandora.256.png">
|
||||
<p>
|
||||
<body class="OxThemeModern">
|
||||
<img src="/static/png/logo256.png">
|
||||
<div style="padding-top: 8px">
|
||||
We'll be back in a minute.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Reference in a new issue