fix rates init
This commit is contained in:
1 parent
c522635c30
commit
096634269b
3 files changed
+2
-2
No files matched your search
+1
-1
@@ -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()
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Whitespace-only changes.
Reference in new issue
Block a user