Fixed Create QR Code issue

This commit is contained in:
Nguyen Ngo
2025-08-15 13:49:07 -04:00
parent ebcd8a2318
commit ed88d5fe3a
2 changed files with 17 additions and 7 deletions
+15 -5
View File
@@ -2399,11 +2399,21 @@ def create_qr_code():
'longitude': address_longitude,
'coordinate_accuracy': coordinate_accuracy
}
logger_handler.logger.info(f"User {session['username']} created QR code: {json.dumps(log_data)}")
logger_handler.log_user_action(
f'QR Code created: {name} with event type: {location_event}',
'create',
additional_info={'location_event': location_event}
qr_data_for_logging = {
'location': location,
'location_address': location_address,
'location_event': location_event,
'has_coordinates': has_coordinates,
'latitude': address_latitude,
'longitude': address_longitude,
'coordinate_accuracy': coordinate_accuracy
}
logger_handler.log_qr_code_created(
qr_code_id=new_qr_code.id,
qr_code_name=name,
created_by_user_id=session['user_id'],
qr_data=qr_data_for_logging
)
# Success message with coordinates info
+1 -1
View File
@@ -5,7 +5,7 @@
/* Page Container */
.attendance-page {
max-width: 1400px;
max-width: 1600px;
margin: 0 auto;
padding: var(--spacing-6);
min-height: 100vh;