mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 12:26:57 -05:00
Enable Thumbnail Updating
This commit is contained in:
parent
85d3099f96
commit
e54005247a
@ -30,7 +30,7 @@
|
|||||||
<td data-th="Channel Name"><input type="text" name="name" value={{ chan_dict["name"] }}></td>
|
<td data-th="Channel Name"><input type="text" name="name" value={{ chan_dict["name"] }}></td>
|
||||||
<td data-th="Channel Calsign"><input type="text" name="callsign" value={{ chan_dict["callsign"] }}></td>
|
<td data-th="Channel Calsign"><input type="text" name="callsign" value={{ chan_dict["callsign"] }}></td>
|
||||||
<td data-th="Channel Number"><input type="text" name="number" value={{ chan_dict["number"] }}></td>
|
<td data-th="Channel Number"><input type="text" name="number" value={{ chan_dict["number"] }}></td>
|
||||||
<td data-th="Channel Thumbnail"><input type="text" name="number" value={{ chan_dict["thumbnail"] }}></td>
|
<td data-th="Channel Thumbnail"><input type="text" name="thumbnail" value={{ chan_dict["thumbnail"] }}></td>
|
||||||
<td>
|
<td>
|
||||||
<select name="enabled">
|
<select name="enabled">
|
||||||
{% if chan_dict["enabled"] %}
|
{% if chan_dict["enabled"] %}
|
||||||
|
|||||||
@ -78,7 +78,7 @@ class Channels():
|
|||||||
updatedict = {}
|
updatedict = {}
|
||||||
for key in list(request.form.keys()):
|
for key in list(request.form.keys()):
|
||||||
if key != "id":
|
if key != "id":
|
||||||
if key in ["name", "callsign"]:
|
if key in ["name", "callsign", "thumbnail"]:
|
||||||
updatedict[key] = str(request.form.get(key))
|
updatedict[key] = str(request.form.get(key))
|
||||||
elif key in ["number"]:
|
elif key in ["number"]:
|
||||||
updatedict[key] = float(request.form.get(key))
|
updatedict[key] = float(request.form.get(key))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user