Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
open-source
MetaGer
Commits
d7b25d62
Commit
d7b25d62
authored
Feb 24, 2020
by
Aria Givi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed cronjob call, added outputs to feed download script
parent
81f721fe
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/Console/Commands/UpdateKelkooFeed.php
app/Console/Commands/UpdateKelkooFeed.php
+2
-1
app/Console/Kernel.php
app/Console/Kernel.php
+0
-2
No files found.
app/Console/Commands/UpdateKelkooFeed.php
View file @
d7b25d62
...
...
@@ -71,6 +71,7 @@ class UpdateKelkooFeed extends Command
$archivesInDirectory
=
scandir
(
config_path
()
.
$this
->
localFeedFilePath
);
foreach
(
$archivesInDirectory
as
$file
)
{
if
(
is_file
(
config_path
()
.
$this
->
localFeedFilePath
.
"/"
.
$file
))
{
echo
"Deleting old file
\"
"
.
$file
.
"
\"\n
"
;
unlink
(
config_path
()
.
$this
->
localFeedFilePath
.
"/"
.
$file
);
}
}
...
...
@@ -127,7 +128,7 @@ class UpdateKelkooFeed extends Command
}
/**
* Extracts the previously downloaded archives into one .xml file and after that deletes the old
previous
one
* Extracts the previously downloaded archives into one .xml file and after that deletes the old one
*/
private
function
extractReplaceFeedFiles
()
{
$archivesInDirectory
=
scandir
(
config_path
()
.
$this
->
localFeedFilePath
);
...
...
app/Console/Kernel.php
View file @
d7b25d62
...
...
@@ -28,8 +28,6 @@ class Kernel extends ConsoleKernel
$schedule
->
command
(
'requests:gather'
)
->
everyFifteenMinutes
();
$schedule
->
command
(
'requests:useragents'
)
->
everyFiveMinutes
();
$schedule
->
command
(
'feeds:update'
)
->
dailyAt
(
'10:00'
);
$schedule
->
call
(
function
()
{
DB
::
table
(
'monthlyrequests'
)
->
truncate
();
DB
::
disconnect
(
'mysql'
);
...
...
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