Spaces:
Sleeping
Sleeping
Upload main.py
Browse files60 unmodified lines6162636464656667220 unmodified lines28828929029129229329429511 unmodified lines30730830931031131231331431531631760 unmodified lines "Vehicles", "Textures", "Colours", "Spoilers", "Rims", "Furnitures", "Gun Skins", "Hyperchromes"]VALUES_RANGE = 'B6:P' # Range within each category sheetVALUES_RANGE = 'B6:R' # Range within each category sheet including column R for lastUpdated
# Cache Update IntervalCACHE_UPDATE_INTERVAL_SECONDS = 60220 unmodified lines demand = row[10] if len(row) > 10 else 'N/A' # Column L notes = row[12] if len(row) > 12 else '' # Column N drive_url = row[14] if len(row) > 14 else None # Column P # Extract lastUpdated from column R (index 16) last_updated = row[16] if len(row) > 16 else None # Column R
cleaned_name = clean_string(name) # Also skip if name is clearly a header like "Name"11 unmodified lines 'notes': clean_string(notes, '') # Remove lastUpdated field - will only be set when an update is detected } # Add lastUpdated if it exists in the sheet if last_updated and str(last_updated).strip(): processed_item['lastUpdated'] = str(last_updated).strip() processed_data.append(processed_item) return processed_data
main.py+8-1