@@ -75,7 +75,6 @@ function scripts.misc.knowledge:show_library_stats(full)
75
75
local libraries_read = db :fetch (scripts .misc .knowledge .db .library_progress ,
76
76
{ db :eq (scripts .misc .knowledge .db .library_progress .character , scripts .character_name ) })
77
77
78
- display (libraries_read )
79
78
local libraries_per_category = {}
80
79
local libraries_started_reading = {}
81
80
for _ , row in pairs (libraries_read ) do
@@ -85,7 +84,7 @@ function scripts.misc.knowledge:show_library_stats(full)
85
84
86
85
table.insert (libraries_per_category [row .about ],
87
86
{ [" library" ] = row .library , [" progress" ] = row .progress })
88
- libraries_started_reading [row .library ] = true
87
+ libraries_started_reading [row .library .. row . about ] = true
89
88
end
90
89
91
90
for _ , category in pairs (misc .knowledge .categories ) do
@@ -97,7 +96,7 @@ function scripts.misc.knowledge:show_library_stats(full)
97
96
if full == true then
98
97
for category , libraries in pairs (scripts .misc .knowledge .category_to_libraries ) do
99
98
for library , _ in pairs (libraries ) do
100
- if libraries_started_reading [library ] == nil then
99
+ if libraries_started_reading [library .. category ] == nil then
101
100
table.insert (libraries_per_category [category ],
102
101
{ [" library" ] = library , [" progress" ] = 0 })
103
102
end
0 commit comments