Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
travelynx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
travelynx
Commits
5e74e35d
Unverified
Commit
5e74e35d
authored
1 year ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
get_pushable_accounts: obtain all values from in_transit_str
parent
83df6f41
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Travelynx/Model/Traewelling.pm
+7
-8
7 additions, 8 deletions
lib/Travelynx/Model/Traewelling.pm
with
7 additions
and
8 deletions
lib/Travelynx/Model/Traewelling.pm
+
7
−
8
View file @
5e74e35d
...
...
@@ -213,18 +213,17 @@ sub get_pushable_accounts {
my
$res
=
$self
->
{
pg
}
->
db
->
query
(
qq{select t.user_id as uid, t.token as token, t.data as data,
i.user_data as user_data,
i.
checkin_station_id as dep_eva, i.checkout_station_id
as arr_eva,
i.
dep_eva as dep_eva, i.arr_eva
as arr_eva,
i.data as journey_data, i.train_type as train_type,
i.train_line as train_line, i.train_no as train_no,
extract(epoch from
i.checkin_t
ime)
as checkin_ts,
extract(epoch from
i.sched_dep
arture)
as dep_ts,
extract(epoch from
i.sched_arr
ival)
as arr_ts,
i
_str
.effective_visibility as visibility
i.checkin_t
s
as checkin_ts,
i.sched_dep
_ts
as dep_ts,
i.sched_arr
_ts
as arr_ts,
i.effective_visibility as visibility
from traewelling as t
join in_transit as i on t.user_id = i.user_id
join in_transit_str as i_str on t.user_id = i_str.user_id
join in_transit_str as i on t.user_id = i.user_id
where t.push_sync = True
and i.
checkout_station_id
is not null
and i.
arr_eva
is not null
and i.cancelled = False
}
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment