Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Fix Arch build.
Browse files Browse the repository at this point in the history
  • Loading branch information
alcinnz committed Jun 4, 2020
1 parent 9d4d6e4 commit 8d00e83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/db/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ CREATE INDEX IF NOT EXISTS link_sources__both ON link_sources(link, domain);
CREATE INDEX tag_favs_index ON fav_tags(tag, fav);
CREATE INDEX fav_tags_index ON fav_tags(fav, tag);
{% endif %}
INSERT OR IGNORE INTO vocab("odysseus:myvocab.ttl#", "", 1.0);
INSERT OR IGNORE INTO vocab VALUES ("odysseus:myvocab.ttl#", "", 1.0);

PRAGMA user_version = 8;
END TRANSACTION;
2 changes: 1 addition & 1 deletion src/Services/Prosody/lib.vala
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ namespace Odysseus.Templating.Std {
escapes["csv"] = Writer.build_escapes("'\"", "\\'", "\\\"");
// These escape codes taken from Django
// https://github.com/django/django/blob/9718fa2e8abe430c3526a9278dd976443d4ae3c6/django/utils/html.py#L51
var escape_js_string = Writer.build_escapes("\\\"><&=-;\x2028\x2029'",
var escape_js_string = Writer.build_escapes("\\\"><&=-;\0x2028\0x2029'",
"\\u005C", "\\u0022", "\\u003E", "\\u003C", "\\u0026",
"\\u003D", "\\u002D", "\\u003B", "\\u2028", "\\u2029");
// Escape every ASCII character with a value less than 32.
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/overlays/Bookmarker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class Odysseus.Bookmarker : Gtk.Popover {
private static Sqlite.Statement Qinsert_favs = Database.parse("INSERT OR REPLACE INTO favs VALUES (?, ?, ?);");
private static Sqlite.Statement Qdelete_toks = Database.parse("DELETE FROM fav_tags WHERE fav = ?;");
private static Sqlite.Statement Qinsert_tok = Database.parse("INSERT OR IGNORE INTO fav_tags VALUES (?, ?);");
private static Sqlite.Statement Qinsert_tag = Database.parse("INSERT INTO tags VALUES (?, ?, (SELECT rowid FROM vocabs WHERE url = 'odysseus:myvocab.ttl#'));");
private static Sqlite.Statement Qinsert_tag = Database.parse("INSERT INTO tags VALUES (?, ?, (SELECT rowid FROM vocab WHERE url = 'odysseus:myvocab.ttl#'));");
private static Sqlite.Statement Qinsert_label = Database.parse("INSERT INTO tag_labels VALUES (?, ?)");
public override void closed() {
unowned Sqlite.Database db = Database.get_database();
Expand Down

0 comments on commit 8d00e83

Please sign in to comment.