Merge branch 'remove_latestapps_dat' into 'master'

remove unused latestapps.dat code

See merge request fdroid/fdroidserver!794
This commit is contained in:
Hans-Christoph Steiner 2020-09-15 07:48:01 +00:00
commit 3c148941f7
1 changed files with 0 additions and 15 deletions

View File

@ -2438,21 +2438,6 @@ def main():
# Update known apks info...
knownapks.writeifchanged()
# Generate latest apps data for widget
if os.path.exists(os.path.join('stats', 'latestapps.txt')):
data = ''
with open(os.path.join('stats', 'latestapps.txt'), 'r') as f:
for line in f:
appid = line.rstrip()
data += appid + "\t"
app = apps[appid]
data += app.Name + "\t"
if app.icon is not None:
data += app.icon + "\t"
data += app.License + "\n"
with open(os.path.join(repodirs[0], 'latestapps.dat'), 'w') as f:
f.write(data)
if cachechanged:
write_cache(apkcache)