mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
make "Current Version Code" default to most recent APK
closes #36 https://gitlab.com/fdroid/fdroidserver/issues/36
This commit is contained in:
parent
3967a0068b
commit
e0312897c7
2 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,7 @@ class App():
|
||||||
self.UpdateCheckName = None
|
self.UpdateCheckName = None
|
||||||
self.UpdateCheckData = None
|
self.UpdateCheckData = None
|
||||||
self.CurrentVersion = ''
|
self.CurrentVersion = ''
|
||||||
self.CurrentVersionCode = '0'
|
self.CurrentVersionCode = None
|
||||||
self.NoSourceSince = ''
|
self.NoSourceSince = ''
|
||||||
|
|
||||||
self.id = None
|
self.id = None
|
||||||
|
|
|
@ -1284,6 +1284,8 @@ def main():
|
||||||
if app.Name is None:
|
if app.Name is None:
|
||||||
app.Name = bestapk['name']
|
app.Name = bestapk['name']
|
||||||
app.icon = bestapk['icon'] if 'icon' in bestapk else None
|
app.icon = bestapk['icon'] if 'icon' in bestapk else None
|
||||||
|
if app.CurrentVersionCode is None:
|
||||||
|
app.CurrentVersionCode = str(bestver)
|
||||||
|
|
||||||
# Sort the app list by name, then the web site doesn't have to by default.
|
# Sort the app list by name, then the web site doesn't have to by default.
|
||||||
# (we had to wait until we'd scanned the apks to do this, because mostly the
|
# (we had to wait until we'd scanned the apks to do this, because mostly the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue