Revert relations purge debugging

This commit is contained in:
Dan Stillman 2013-11-21 20:41:22 -05:00
parent 15710060be
commit 305edd893c

View File

@ -229,12 +229,8 @@ Zotero.Relations = new function () {
var uris = Zotero.DB.columnQuery(sql, [this.deletedItemPredicate, this.deletedItemPredicate]); var uris = Zotero.DB.columnQuery(sql, [this.deletedItemPredicate, this.deletedItemPredicate]);
if (uris) { if (uris) {
var prefix = Zotero.URI.defaultPrefix; var prefix = Zotero.URI.defaultPrefix;
try {
Zotero.DB.beginTransaction(); Zotero.DB.beginTransaction();
for each(var uri in uris) { for each(var uri in uris) {
Zotero.debug('===');
Zotero.debug(uri);
// Skip URIs that don't begin with the default prefix, // Skip URIs that don't begin with the default prefix,
// since they don't correspond to local items // since they don't correspond to local items
if (uri.indexOf(prefix) == -1) { if (uri.indexOf(prefix) == -1) {
@ -249,15 +245,6 @@ Zotero.Relations = new function () {
} }
Zotero.DB.commitTransaction(); Zotero.DB.commitTransaction();
} }
catch (e) {
Zotero.debug(e);
Zotero.debug(uris);
var rels = Zotero.DB.query("SELECT * FROM relations");
for each (let rel in rels) {
Zotero.debug(rel);
}
}
}
} }