fix rates init

This commit is contained in:
matt committed 2026-10-17 05:39:52 -07:00
1 parent c522635c30
commit 096634269b
3 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ def initialize_db() -> None:
# Use JSON string for array values # Use JSON string for array values
cursor.execute( cursor.execute(
"INSERT OR REPLACE INTO settings (name, value) VALUES (?, ?)", "INSERT OR REPLACE INTO settings (name, value) VALUES (?, ?)",
("rate_options", json.dumps(["half_hour", "hour"])), ("rate_options", "half_hour,hour"),
) )
conn.commit() conn.commit()
+1 -1
View File
@@ -114,7 +114,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<?php endif; ?> <?php endif; ?>
<form method="post" action=""> <form method="post" action="">
<?php <?php
echo $rateOptions[0]; // echo $rateOptions[0];
?> ?>
<label>Name:<br><input type="text" name="name" value="<?=htmlspecialchars($_POST['name'] ?? '')?>" required></label> <label>Name:<br><input type="text" name="name" value="<?=htmlspecialchars($_POST['name'] ?? '')?>" required></label>
View File
Whitespace-only changes.