Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tx3-bang-reader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
tx3-bang-reader
Commits
2c7e5cba
Commit
2c7e5cba
authored
Jul 03, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save no region as none
parent
d3872d31
Pipeline
#258
passed with stages
in 2 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/fetcher.ts
src/fetcher.ts
+3
-2
src/playerlist.ts
src/playerlist.ts
+1
-1
No files found.
src/fetcher.ts
View file @
2c7e5cba
...
...
@@ -70,7 +70,7 @@ export class Tx3Fetcher {
"
`serverArea` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
\n
"
+
"
`server` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
\n
"
+
"
`level` tinyint(4) UNSIGNED NOT NULL,
\n
"
+
"
`region` varchar(7) COLLATE utf8_unicode_ci,
\n
"
+
"
`region` varchar(7) COLLATE utf8_unicode_ci
NOT NULL
,
\n
"
+
"
`score` int(11) UNSIGNED NOT NULL,
\n
"
+
"
`equip` int(11) UNSIGNED NOT NULL,
\n
"
+
"
`totalScore` int(11) UNSIGNED NOT NULL,
\n
"
+
...
...
@@ -81,7 +81,8 @@ export class Tx3Fetcher {
"
INDEX (category(5)),
\n
"
+
"
INDEX (serverArea(4)),
\n
"
+
"
INDEX (server(4)),
\n
"
+
"
INDEX (equip(11))
\n
"
+
"
INDEX (region(7)),
\n
"
+
"
INDEX (equip)
\n
"
+
"
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
"
);
console
.
log
(
`Removing existing records of
${
this
.
curDate
}
.`
);
//await this.db.query("delete from userdata where date = ?", this.curDate);
...
...
src/playerlist.ts
View file @
2c7e5cba
...
...
@@ -26,7 +26,7 @@ function getPlayerRowFromTree(tree: HTML.Tree): PlayerRow {
server
:
getString
(
nodes
[
3
]),
level
:
getNumber
(
nodes
[
4
]),
category
:
getString
(
nodes
[
5
]),
region
:
getString
(
nodes
[
6
],
7
),
region
:
getString
(
nodes
[
6
],
7
)
||
"
none
"
,
score
:
getNumber
(
nodes
[
7
]),
equip
:
getNumber
(
nodes
[
8
]),
totalScore
:
getNumber
(
nodes
[
9
])
...
...
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