mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Update comments
This commit is contained in:
parent
3f73591dd4
commit
16397050dd
@ -80,7 +80,7 @@ class Title
|
|||||||
# - When the title exists and its contents signature is still the same, we
|
# - When the title exists and its contents signature is still the same, we
|
||||||
# return true so it can be reused without rescanning
|
# return true so it can be reused without rescanning
|
||||||
def examine(context : ExamineContext) : Bool
|
def examine(context : ExamineContext) : Bool
|
||||||
return false unless Dir.exists? @dir # No title, Remove this
|
return false unless Dir.exists? @dir
|
||||||
contents_signature = Dir.contents_signature @dir,
|
contents_signature = Dir.contents_signature @dir,
|
||||||
context["cached_contents_signature"]
|
context["cached_contents_signature"]
|
||||||
return true if @contents_signature == contents_signature
|
return true if @contents_signature == contents_signature
|
||||||
|
@ -438,7 +438,6 @@ class Storage
|
|||||||
get_db do |db|
|
get_db do |db|
|
||||||
# Detect dangling entry IDs
|
# Detect dangling entry IDs
|
||||||
trash_ids = [] of String
|
trash_ids = [] of String
|
||||||
# Use query builder instead?
|
|
||||||
query = "select path, id from ids where unavailable = 0"
|
query = "select path, id from ids where unavailable = 0"
|
||||||
unless ids_candidates.nil?
|
unless ids_candidates.nil?
|
||||||
query += " and id in (#{ids_candidates.join "," { |i| "'#{i}'" }})"
|
query += " and id in (#{ids_candidates.join "," { |i| "'#{i}'" }})"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user