mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
I accidentally ignored ALL sources, not just new ones
This commit is contained in:
@@ -124,12 +124,6 @@ COMMIT;";
|
|||||||
// Add the hash to the temporary Dictionary
|
// Add the hash to the temporary Dictionary
|
||||||
hashes.Add(hash, hashid);
|
hashes.Add(hash, hashid);
|
||||||
|
|
||||||
// If we don't care about source, stop here
|
|
||||||
if (_ignore)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Now try to determine the source for the file based on the name
|
// Now try to determine the source for the file based on the name
|
||||||
string source = GetSourceFromFileName(Path.GetFileName(file));
|
string source = GetSourceFromFileName(Path.GetFileName(file));
|
||||||
int sourceid = 0;
|
int sourceid = 0;
|
||||||
@@ -147,6 +141,9 @@ COMMIT;";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only if we're not ignoring new sources should be ask the user for input
|
||||||
|
if (!_ignore)
|
||||||
|
{
|
||||||
// If the source is blank, ask the user to supply one
|
// If the source is blank, ask the user to supply one
|
||||||
while (source == "" && sourceid == 0)
|
while (source == "" && sourceid == 0)
|
||||||
{
|
{
|
||||||
@@ -207,6 +204,7 @@ COMMIT;";
|
|||||||
sourceid = sources[source];
|
sourceid = sources[source];
|
||||||
}
|
}
|
||||||
// Otherwise, we should already have an ID
|
// Otherwise, we should already have an ID
|
||||||
|
}
|
||||||
|
|
||||||
// Add the source and system link to the database
|
// Add the source and system link to the database
|
||||||
string uquery = @"INSERT OR IGNORE INTO datsdata (id, key, value)
|
string uquery = @"INSERT OR IGNORE INTO datsdata (id, key, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user