Spaces:
Sleeping
Sleeping
Upload main.py
Browse files60 unmodified lines61626364656667220 unmodified lines28828929029129229311 unmodified lines30530630730830931060 unmodified lines"Vehicles", "Textures", "Colours", "Spoilers","Rims", "Furnitures", "Gun Skins", "Hyperchromes"]VALUES_RANGE = 'B6:P' # Range within each category sheet# Cache Update IntervalCACHE_UPDATE_INTERVAL_SECONDS = 60220 unmodified linesdemand = row[10] if len(row) > 10 else 'N/A' # Column Lnotes = row[12] if len(row) > 12 else '' # Column Ndrive_url = row[14] if len(row) > 14 else None # Column Pcleaned_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}processed_data.append(processed_item)return processed_data60 unmodified lines61626364656667220 unmodified lines28828929029129229329429511 unmodified lines30730830931031131231331431531631760 unmodified lines"Vehicles", "Textures", "Colours", "Spoilers","Rims", "Furnitures", "Gun Skins", "Hyperchromes"]VALUES_RANGE = 'B6:R' # Range within each category sheet including column R for lastUpdated# Cache Update IntervalCACHE_UPDATE_INTERVAL_SECONDS = 60220 unmodified linesdemand = row[10] if len(row) > 10 else 'N/A' # Column Lnotes = row[12] if len(row) > 12 else '' # Column Ndrive_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 Rcleaned_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 sheetif 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