@@ -730,17 +730,20 @@ def confirm_merge(id):
730
730
cursor .execute (
731
731
"""
732
732
SELECT
733
- fs.*,
733
+ fs.id, fs.status, fs.src, fs.`key`, fs.megakey,
734
+ fs.timestamp, fs.detection_size, fs.set_dat_metadata,
734
735
g.name AS game_name,
735
- g.engine AS game_engine,
736
+ e.name AS game_engine,
736
737
g.platform AS game_platform,
737
738
g.language AS game_language,
738
739
(SELECT COUNT(*) FROM file WHERE fileset = fs.id) AS file_count
739
- FROM
740
+ FROM
740
741
fileset fs
741
- LEFT JOIN
742
+ LEFT JOIN
742
743
game g ON fs.game = g.id
743
- WHERE
744
+ LEFT JOIN
745
+ engine e ON g.engine = e.id
746
+ WHERE
744
747
fs.id = %s
745
748
""" ,
746
749
(id ,),
@@ -761,16 +764,19 @@ def confirm_merge(id):
761
764
cursor .execute (
762
765
"""
763
766
SELECT
764
- fs.*,
765
- g.name AS game_name,
766
- g.engine AS game_engine,
767
+ fs.id, fs.status, fs.src, fs.`key`, fs.megakey,
768
+ fs.timestamp, fs.detection_size, fs.set_dat_metadata,
769
+ g.name AS game_name,
770
+ e.name AS game_engine,
767
771
g.platform AS game_platform,
768
772
g.language AS game_language,
769
773
(SELECT COUNT(*) FROM file WHERE fileset = fs.id) AS file_count
770
774
FROM
771
775
fileset fs
772
776
LEFT JOIN
773
777
game g ON fs.game = g.id
778
+ LEFT JOIN
779
+ engine e ON g.engine = e.id
774
780
WHERE
775
781
fs.id = %s
776
782
""" ,
@@ -844,6 +850,7 @@ def highlight_differences(source, target):
844
850
<tr><th style="width: 50px;">Field</th><th style="width: 1000px;">Source Fileset</th><th style="width: 1000px;">Target Fileset</th></tr>
845
851
"""
846
852
853
+ # Fileset metadata
847
854
for column in source_fileset .keys ():
848
855
source_value = str (source_fileset [column ])
849
856
target_value = str (target_fileset [column ])
@@ -959,10 +966,8 @@ def highlight_differences(source, target):
959
966
}
960
967
)
961
968
)
962
- if (
963
- os .path .basename (matched_source_filename ).lower ()
964
- in detection_files_set
965
- ):
969
+
970
+ if matched_source_filename .lower () in detection_files_set :
966
971
target_val = html_lib .escape (
967
972
json .dumps (
968
973
{
0 commit comments