Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
9ef71506
Commit
9ef71506
authored
Jul 23, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support detailed query only
parent
96004378
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
data-manager/DataManager.js
data-manager/DataManager.js
+2
-2
data-manager/DataManager.ts
data-manager/DataManager.ts
+2
-2
No files found.
data-manager/DataManager.js
View file @
9ef71506
...
@@ -267,7 +267,7 @@ class DataManager {
...
@@ -267,7 +267,7 @@ class DataManager {
.
where
(
"
1
"
);
.
where
(
"
1
"
);
if
(
roomName
!=
null
&&
roomName
.
length
)
{
if
(
roomName
!=
null
&&
roomName
.
length
)
{
const
escapedRoomName
=
this
.
getEscapedString
(
roomName
);
const
escapedRoomName
=
this
.
getEscapedString
(
roomName
);
queryBuilder
.
andWhere
(
"
duelLog.name
like
:escapedRoomName
"
,
{
escapedRoomName
});
queryBuilder
.
andWhere
(
"
duelLog.name
=
:escapedRoomName
"
,
{
escapedRoomName
});
}
}
if
(
duelCount
!=
null
&&
!
isNaN
(
duelCount
))
{
if
(
duelCount
!=
null
&&
!
isNaN
(
duelCount
))
{
queryBuilder
.
andWhere
(
"
duelLog.duelCount = :duelCount
"
,
{
duelCount
});
queryBuilder
.
andWhere
(
"
duelLog.duelCount = :duelCount
"
,
{
duelCount
});
...
@@ -277,7 +277,7 @@ class DataManager {
...
@@ -277,7 +277,7 @@ class DataManager {
const
innerQueryParams
=
{};
const
innerQueryParams
=
{};
if
(
playerName
!=
null
&&
playerName
.
length
)
{
if
(
playerName
!=
null
&&
playerName
.
length
)
{
const
escapedPlayerName
=
this
.
getEscapedString
(
playerName
);
const
escapedPlayerName
=
this
.
getEscapedString
(
playerName
);
innerQuery
+=
"
and duel_log_player.realName
like
:escapedPlayerName
"
;
innerQuery
+=
"
and duel_log_player.realName
=
:escapedPlayerName
"
;
innerQueryParams
.
escapedPlayerName
=
escapedPlayerName
;
innerQueryParams
.
escapedPlayerName
=
escapedPlayerName
;
}
}
if
(
playerScore
!=
null
&&
!
isNaN
(
playerScore
))
{
if
(
playerScore
!=
null
&&
!
isNaN
(
playerScore
))
{
...
...
data-manager/DataManager.ts
View file @
9ef71506
...
@@ -275,7 +275,7 @@ export class DataManager {
...
@@ -275,7 +275,7 @@ export class DataManager {
.
where
(
"
1
"
);
.
where
(
"
1
"
);
if
(
roomName
!=
null
&&
roomName
.
length
)
{
if
(
roomName
!=
null
&&
roomName
.
length
)
{
const
escapedRoomName
=
this
.
getEscapedString
(
roomName
);
const
escapedRoomName
=
this
.
getEscapedString
(
roomName
);
queryBuilder
.
andWhere
(
"
duelLog.name
like
:escapedRoomName
"
,
{
escapedRoomName
});
queryBuilder
.
andWhere
(
"
duelLog.name
=
:escapedRoomName
"
,
{
escapedRoomName
});
}
}
if
(
duelCount
!=
null
&&
!
isNaN
(
duelCount
))
{
if
(
duelCount
!=
null
&&
!
isNaN
(
duelCount
))
{
queryBuilder
.
andWhere
(
"
duelLog.duelCount = :duelCount
"
,
{
duelCount
});
queryBuilder
.
andWhere
(
"
duelLog.duelCount = :duelCount
"
,
{
duelCount
});
...
@@ -285,7 +285,7 @@ export class DataManager {
...
@@ -285,7 +285,7 @@ export class DataManager {
const
innerQueryParams
:
any
=
{};
const
innerQueryParams
:
any
=
{};
if
(
playerName
!=
null
&&
playerName
.
length
)
{
if
(
playerName
!=
null
&&
playerName
.
length
)
{
const
escapedPlayerName
=
this
.
getEscapedString
(
playerName
);
const
escapedPlayerName
=
this
.
getEscapedString
(
playerName
);
innerQuery
+=
"
and duel_log_player.realName
like
:escapedPlayerName
"
;
innerQuery
+=
"
and duel_log_player.realName
=
:escapedPlayerName
"
;
innerQueryParams
.
escapedPlayerName
=
escapedPlayerName
;
innerQueryParams
.
escapedPlayerName
=
escapedPlayerName
;
}
}
if
(
playerScore
!=
null
&&
!
isNaN
(
playerScore
))
{
if
(
playerScore
!=
null
&&
!
isNaN
(
playerScore
))
{
...
...
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