summaryrefslogtreecommitdiff
path: root/rhautoimport.pm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2024-06-19 11:47:16 (GMT)
committerChristian Pointner <equinox@helsinki.at>2024-06-19 11:47:16 (GMT)
commita8ce2eafd79fac37b2c03a47b50e49d7d35b1a37 (patch)
tree3894784e4c5329398a04603a788fa444a9bca841 /rhautoimport.pm
parentaa88fa445d2d7fb2a5ccb747d01366abbfdaef89 (diff)
democracy now: import into second cart of show log
Diffstat (limited to 'rhautoimport.pm')
-rw-r--r--rhautoimport.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/rhautoimport.pm b/rhautoimport.pm
index 4e893ae..9ac48f0 100644
--- a/rhautoimport.pm
+++ b/rhautoimport.pm
@@ -70,6 +70,20 @@ sub get_dropboxes
return @allowed_dbs;
}
+sub get_show_carts
+{
+ my ($show_id) = @_;
+
+ my ($ctx, $status, $errorstring) = RHRD::rddb::init();
+ if(!defined $ctx) {
+ return ($ctx, $errorstring);
+ }
+ my @show_carts = RHRD::rddb::get_show_carts($ctx, $show_id);
+ RHRD::rddb::destroy($ctx);
+
+ return @show_carts;
+}
+
sub fetch_parse_rss
{
my ($url, $ua_str, $headers, $queries) = @_;