Commit edc07c8d authored by echel0n's avatar echel0n

Resolved issue for saving custom qualities, black/white lists, and scene exceptions.

parent 2084c519
......@@ -1024,9 +1024,9 @@ class EditShowHandler(BaseHandler, ABC):
async def post(self, *args, **kwargs):
show = self.get_argument('show')
location = self.get_argument('location', None)
any_qualities = self.get_argument('anyQualities', '')
best_qualities = self.get_argument('bestQualities', '')
exceptions_list = self.get_argument('exceptions_list', '')
any_qualities = self.get_arguments('anyQualities')
best_qualities = self.get_arguments('bestQualities')
exceptions_list = self.get_arguments('exceptions_list')
flatten_folders = self.get_argument('flatten_folders', None)
paused = self.get_argument('paused', None)
direct_call = bool(self.get_argument('directCall', None))
......@@ -1084,10 +1084,6 @@ class EditShowHandler(BaseHandler, ABC):
else:
do_update_scene_numbering = True
any_qualities = any_qualities.split(',') if len(any_qualities) else []
best_qualities = best_qualities.split(',') if len(best_qualities) else []
exceptions_list = exceptions_list.split(',') if len(exceptions_list) else []
show_obj.paused = paused
show_obj.scene = scene
show_obj.anime = anime
......
......@@ -28,7 +28,7 @@
</div>
<div class="row">
<div class="col-md-12">
<select id="white" multiple="multiple" size="12" title="white">
<select id="white" multiple="multiple" size="12" title="white" style="min-width:200px;height:99px;">
% for keyword in whitelist:
<option value="${keyword}">${keyword}</option>
% endfor
......@@ -49,7 +49,7 @@
</div>
<div class="row">
<div class="col-md-12">
<select id="pool" multiple="multiple" size="12" title="pool">
<select id="pool" multiple="multiple" size="12" title="pool" style="min-width:200px;height:99px;">
% for group in groups:
% if group['name'] not in whitelist and group['name'] not in blacklist:
<option value="${group['name']}">${group['name']} | ${group['rating']}
......@@ -74,7 +74,7 @@
</div>
<div class="row">
<div class="col-md-12">
<select id="black" multiple="multiple" size="12" title="black">
<select id="black" multiple="multiple" size="12" title="black" style="min-width:200px;height:99px;">
% for keyword in blacklist:
<option value="${keyword}">${keyword}</option>
% endfor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment