diff options
author | Yorhel <git@yorhel.nl> | 2019-09-17 20:26:09 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-17 20:28:55 +0200 |
commit | cc2a1d72e499f7befe1b615a1322952dfb628fab (patch) | |
tree | 19ebe2931d082453d7004894da8259014ce23ca4 /lib/VNDB/DB/Misc.pm | |
parent | b34b37ba5acdf423ab30f4927cbdbbc704e91590 (diff) |
v2rw: Initial start on an incremental rewrite; Layout HTML first
I copied and modified VN3::DB to VNWeb::DB, but it isn't used yet. Now
that I think about it, that module isn't "web" specific at all and
should perhaps be in the VNDB:: namespace. Oh well.
Diffstat (limited to 'lib/VNDB/DB/Misc.pm')
-rw-r--r-- | lib/VNDB/DB/Misc.pm | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/VNDB/DB/Misc.pm b/lib/VNDB/DB/Misc.pm index 4a669cc3..60c13370 100644 --- a/lib/VNDB/DB/Misc.pm +++ b/lib/VNDB/DB/Misc.pm @@ -6,7 +6,7 @@ use warnings; use Exporter 'import'; our @EXPORT = qw| - dbStats dbItemEdit dbRevisionGet dbRandomQuote dbWikidata + dbStats dbItemEdit dbRevisionGet dbWikidata |; @@ -111,16 +111,6 @@ sub dbRevisionGet { } -# Returns a random quote (hashref with keys = vid, quote) -sub dbRandomQuote { - return $_[0]->dbRow(q| - SELECT vid, quote - FROM quotes - ORDER BY RANDOM() - LIMIT 1|); -} - - # Returns a row from wikidata sub dbWikidata { return $_[0]->dbRow('SELECT * FROM wikidata WHERE id = ?', $_[1]); |