summaryrefslogtreecommitdiff
path: root/util/devdump.pl
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-08-09 16:53:54 +0200
committerYorhel <git@yorhel.nl>2019-08-09 16:53:56 +0200
commit414daab355c8392dc21d5623cd458426d221fedf (patch)
tree14853fa252b5130e24dcad779505f8b86b9c909b /util/devdump.pl
parent76da9bdcf9a6492888f02457a9c7a23454da1092 (diff)
Replace Wikipedia links with Wikidata IDs
+ Automatically fetch other links from Wikidata
Diffstat (limited to 'util/devdump.pl')
-rwxr-xr-xutil/devdump.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/devdump.pl b/util/devdump.pl
index 6adc361b..e001ede2 100755
--- a/util/devdump.pl
+++ b/util/devdump.pl
@@ -125,6 +125,9 @@ sub copy_entry {
copy traits => undef, {addedby => 'user'};
copy 'traits_parents';
+ # Wikidata (TODO: This could be a lot more selective)
+ copy 'wikidata';
+
# Threads (announcements)
my $threads = join ',', @{ $db->selectcol_arrayref("SELECT tid FROM threads_boards b WHERE b.type = 'an'") };
copy threads => "SELECT * FROM threads WHERE id IN($threads)";