I accidentally ignored ALL sources, not just new ones

This commit is contained in:
Matt Nadareski
2016-05-09 15:53:37 -07:00
parent 186b85a6b0
commit f5cf9cb802

View File

@@ -124,12 +124,6 @@ COMMIT;";
// Add the hash to the temporary Dictionary
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
string source = GetSourceFromFileName(Path.GetFileName(file));
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
while (source == "" && sourceid == 0)
{
@@ -207,6 +204,7 @@ COMMIT;";
sourceid = sources[source];
}
// Otherwise, we should already have an ID
}
// Add the source and system link to the database
string uquery = @"INSERT OR IGNORE INTO datsdata (id, key, value)