summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model/Journeys.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-03-04 09:03:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-03-04 09:03:50 +0100
commite1231b88e2dd989dea0ce97d2b28d7e895cbfeaa (patch)
tree0d08bdf243f85b0efbaab23aebfeb988559672ec /lib/Travelynx/Model/Journeys.pm
parent9abdaefaf59a4edc169419fb66bec237a29b9189 (diff)
status/profile: re-add ability to show latest checkout, if desired1.30.1
got lost in 1.30.0
Diffstat (limited to 'lib/Travelynx/Model/Journeys.pm')
-rwxr-xr-xlib/Travelynx/Model/Journeys.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm
index 0062642..312910f 100755
--- a/lib/Travelynx/Model/Journeys.pm
+++ b/lib/Travelynx/Model/Journeys.pm
@@ -720,6 +720,11 @@ sub get_latest {
}
)->expand->hash;
+ $latest_successful->{visibility_str}
+ = $latest_successful->{visibility}
+ ? $visibility_itoa{ $latest_successful->{visibility} }
+ : 'default';
+
my $latest = $db->select(
'journeys_str',
'*',
@@ -732,6 +737,11 @@ sub get_latest {
}
)->expand->hash;
+ $latest->{visibility_str}
+ = $latest->{visibility}
+ ? $visibility_itoa{ $latest->{visibility} }
+ : 'default';
+
return ( $latest_successful, $latest );
}