Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pitube
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
Container registry
Model registry
Operate
Environments
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
TO
pitube
Commits
99b3bb2a
Verified
Commit
99b3bb2a
authored
4 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Indexer bugfix
parent
622cd058
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
script/index_records
+2
-4
2 additions, 4 deletions
script/index_records
with
3 additions
and
5 deletions
.gitlab-ci.yml
+
1
−
1
View file @
99b3bb2a
...
...
@@ -2,7 +2,7 @@ image: docker:19.03.12
variables
:
DOCKER_TLS_CERTDIR
:
"
/certs"
IMAGE_VER
:
1.8.
1
IMAGE_VER
:
1.8.
2
services
:
-
docker:19.03.12-dind
...
...
This diff is collapsed.
Click to expand it.
script/index_records
+
2
−
4
View file @
99b3bb2a
...
...
@@ -5,12 +5,10 @@ use warnings;
use
FindBin
qw($Bin)
;
use
lib
"
$Bin
/../lib
";
use
File::
Copy
;
use
Mojo::
Pg
;
use
constant
YAMDI
=>
'
/usr/bin/yamdi
';
#use PiTube::Schema;
use
Mojo::
Pg
;
my
$pg
=
Mojo::
Pg
->
new
->
dsn
(
$ENV
{
DB_DSN
})
->
username
(
$ENV
{
DB_USERNAME
})
...
...
@@ -26,6 +24,7 @@ my $records = $pg->db->query(qq[
RECORD:
while
(
my
$record
=
$records
->
hash
)
{
next
RECORD
if
!
-
f
$record
->
{
path
};
next
RECORD
if
-
f
$record
->
{
path
}
.
'
.idx
';
print
"
Indexing
$record
->{path}
\n
";
...
...
@@ -42,5 +41,4 @@ while (my $record = $records->hash) {
{
id
=>
$record
->
{
id
}},
);
}
}
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