Spaces:
Runtime error
Runtime error
fix: Remove emojis from codebase
Browse files- Remove checkmark emoji from config.py
- Remove checkmark emoji from master_tree_database.py
- Maintain professional emoji-free codebase
- config.py +2 -2
- master_tree_database.py +1 -1
- static/index.html +2 -2
- static/map.html +2 -2
- static/sw.js +1 -1
- version.json +1 -1
config.py
CHANGED
|
@@ -172,7 +172,7 @@ if __name__ == "__main__":
|
|
| 172 |
# Test configuration loading
|
| 173 |
try:
|
| 174 |
settings = get_settings()
|
| 175 |
-
print("
|
| 176 |
print(f"App: {settings.app.app_name} v{settings.app.app_version}")
|
| 177 |
print(f"Environment: {settings.app.environment}")
|
| 178 |
print(f"Server: {settings.server.host}:{settings.server.port}")
|
|
@@ -180,5 +180,5 @@ if __name__ == "__main__":
|
|
| 180 |
print(f"CORS Origins: {settings.security.cors_origins}")
|
| 181 |
|
| 182 |
except Exception as e:
|
| 183 |
-
print(f"
|
| 184 |
exit(1)
|
|
|
|
| 172 |
# Test configuration loading
|
| 173 |
try:
|
| 174 |
settings = get_settings()
|
| 175 |
+
print("Configuration loaded successfully")
|
| 176 |
print(f"App: {settings.app.app_name} v{settings.app.app_version}")
|
| 177 |
print(f"Environment: {settings.app.environment}")
|
| 178 |
print(f"Server: {settings.server.host}:{settings.server.port}")
|
|
|
|
| 180 |
print(f"CORS Origins: {settings.security.cors_origins}")
|
| 181 |
|
| 182 |
except Exception as e:
|
| 183 |
+
print(f"Configuration error: {e}")
|
| 184 |
exit(1)
|
master_tree_database.py
CHANGED
|
@@ -211,7 +211,7 @@ def create_master_tree_database():
|
|
| 211 |
if cursor.rowcount > 0:
|
| 212 |
inserted_count += 1
|
| 213 |
|
| 214 |
-
logger.info(f"
|
| 215 |
|
| 216 |
conn.commit()
|
| 217 |
conn.close()
|
|
|
|
| 211 |
if cursor.rowcount > 0:
|
| 212 |
inserted_count += 1
|
| 213 |
|
| 214 |
+
logger.info(f"Master tree database created with {inserted_count} species")
|
| 215 |
|
| 216 |
conn.commit()
|
| 217 |
conn.close()
|
static/index.html
CHANGED
|
@@ -907,7 +907,7 @@
|
|
| 907 |
// Force refresh if we detect cached version
|
| 908 |
(function() {
|
| 909 |
const currentVersion = '5.1.1';
|
| 910 |
-
const timestamp = '
|
| 911 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 912 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 913 |
|
|
@@ -1152,7 +1152,7 @@
|
|
| 1152 |
</div>
|
| 1153 |
</div>
|
| 1154 |
|
| 1155 |
-
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=
|
| 1156 |
|
| 1157 |
<script>
|
| 1158 |
// Idle-time prefetch of map assets to speed up first navigation
|
|
|
|
| 907 |
// Force refresh if we detect cached version
|
| 908 |
(function() {
|
| 909 |
const currentVersion = '5.1.1';
|
| 910 |
+
const timestamp = '1761481934'; // Cache-busting bump
|
| 911 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 912 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 913 |
|
|
|
|
| 1152 |
</div>
|
| 1153 |
</div>
|
| 1154 |
|
| 1155 |
+
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1761481934"></script>
|
| 1156 |
|
| 1157 |
<script>
|
| 1158 |
// Idle-time prefetch of map assets to speed up first navigation
|
static/map.html
CHANGED
|
@@ -799,7 +799,7 @@
|
|
| 799 |
// Force refresh if we detect cached version
|
| 800 |
(function() {
|
| 801 |
const currentVersion = '5.1.1';
|
| 802 |
-
const timestamp = '
|
| 803 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 804 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 805 |
|
|
@@ -925,7 +925,7 @@ const timestamp = '1761481840'; // Current timestamp for cache busting
|
|
| 925 |
|
| 926 |
<!-- Leaflet JS -->
|
| 927 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 928 |
-
<script src="/static/map.js?v=5.1.1&t=
|
| 929 |
|
| 930 |
"default-state": {
|
| 931 |
gradients: [
|
|
|
|
| 799 |
// Force refresh if we detect cached version
|
| 800 |
(function() {
|
| 801 |
const currentVersion = '5.1.1';
|
| 802 |
+
const timestamp = '1761481934'; // Current timestamp for cache busting
|
| 803 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 804 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 805 |
|
|
|
|
| 925 |
|
| 926 |
<!-- Leaflet JS -->
|
| 927 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 928 |
+
<script src="/static/map.js?v=5.1.1&t=1761481934">
|
| 929 |
|
| 930 |
"default-state": {
|
| 931 |
gradients: [
|
static/sw.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
// TreeTrack Service Worker - PWA and Offline Support
|
| 2 |
-
const VERSION =
|
| 3 |
const CACHE_NAME = `treetrack-v${VERSION}`;
|
| 4 |
const STATIC_CACHE = `static-v${VERSION}`;
|
| 5 |
const API_CACHE = `api-v${VERSION}`;
|
|
|
|
| 1 |
// TreeTrack Service Worker - PWA and Offline Support
|
| 2 |
+
const VERSION = 1761481934; // Cache busting bump - force clients to fetch new static assets and header image change
|
| 3 |
const CACHE_NAME = `treetrack-v${VERSION}`;
|
| 4 |
const STATIC_CACHE = `static-v${VERSION}`;
|
| 5 |
const API_CACHE = `api-v${VERSION}`;
|
version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
"version": "5.1.1",
|
| 3 |
-
"timestamp":
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": "5.1.1",
|
| 3 |
+
"timestamp": 1761481934
|
| 4 |
}
|