Browse Source

Fix buildTimestamp not being updated by update_cache.

v1
Andrew Belt 5 years ago
parent
commit
887269cb97
2 changed files with 11 additions and 12 deletions
  1. +6
    -6
      manifests-cache.json
  2. +5
    -6
      scripts/update_cache.py

+ 6
- 6
manifests-cache.json View File

@@ -1,6 +1,6 @@
{
"HolonicSystems-Free": {
"buildTimestamp": 1585811513.4862268,
"buildTimestamp": 1586323637.836929,
"creationTimestamp": 1540482286.0,
"modules": {
"HolonicSystems-Gaps": {
@@ -381,7 +381,7 @@
}
},
"voxglitch": {
"buildTimestamp": 1585695571.541545,
"buildTimestamp": 1586323588.98252,
"creationTimestamp": 1579792597.0,
"modules": {
"autobreak": {
@@ -3025,7 +3025,7 @@
}
},
"kocmoc": {
"buildTimestamp": 1584680861.7870274,
"buildTimestamp": 1586324000.8982444,
"creationTimestamp": 1572165273.0,
"modules": {
"SVF-1": {
@@ -3354,7 +3354,7 @@
}
},
"Kosmodules-Free": {
"buildTimestamp": 1578538652.245714,
"buildTimestamp": 1586323659.130731,
"creationTimestamp": 1578539523.0,
"modules": {
"OSF": {
@@ -5610,7 +5610,7 @@
"modules": {}
},
"Mental": {
"buildTimestamp": 1572354009.5338948,
"buildTimestamp": 1586323962.3873985,
"creationTimestamp": 1569943058.0,
"modules": {
"MentalMults": {
@@ -5730,7 +5730,7 @@
}
},
"SubmarineFree": {
"buildTimestamp": 1585695770.3191123,
"buildTimestamp": 1586323866.0852828,
"creationTimestamp": 1522452120.0,
"modules": {
"AG-104": {


+ 5
- 6
scripts/update_cache.py View File

@@ -64,12 +64,11 @@ def update():
cache_plugin = cache.get(plugin_slug, {})

# Get plugin build
if 'buildTimestamp' not in cache_plugin:
print(f"Getting buildTimestamp for plugin {plugin_slug}")
try:
cache_plugin['buildTimestamp'] = get_plugin_build(plugin)
except:
pass
print(f"Getting buildTimestamp for plugin {plugin_slug}")
try:
cache_plugin['buildTimestamp'] = get_plugin_build(plugin)
except:
pass

# Get plugin creation
if 'creationTimestamp' not in cache_plugin:


Loading…
Cancel
Save