Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KPublicTransport
Commits
714b93c3
Commit
714b93c3
authored
Apr 20, 2021
by
Volker Krause
Browse files
Adapt OTP prober to the new backend type format
parent
d220a879
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/otpprobe.cpp
View file @
714b93c3
...
...
@@ -69,7 +69,8 @@ int main(int argc, char **argv)
const
auto
doc
=
QJsonDocument
::
fromJson
(
f
.
readAll
());
const
auto
obj
=
doc
.
object
();
if
(
!
obj
.
value
(
QLatin1String
(
"type"
)).
toString
().
startsWith
(
QLatin1String
(
"otp_"
)))
{
const
auto
typeObj
=
obj
.
value
(
QLatin1String
(
"type"
)).
toObject
();
if
(
!
typeObj
.
contains
(
QLatin1String
(
"otpRest"
))
&&
!
typeObj
.
contains
(
QLatin1String
(
"otpGraphQl"
)))
{
continue
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment