flow changes
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
This commit is contained in:
parent
4de6df7175
commit
8543ebac7f
@ -19,6 +19,7 @@ jobs:
|
|||||||
php crawler.php
|
php crawler.php
|
||||||
git config --global user.email "gitea@haschek.at"
|
git config --global user.email "gitea@haschek.at"
|
||||||
git config --global user.name "Gitea"
|
git config --global user.name "Gitea"
|
||||||
|
git pull
|
||||||
git add data.db
|
git add data.db
|
||||||
git commit -m "update database"
|
git commit -m "update database"
|
||||||
git push
|
git push
|
||||||
|
@ -172,11 +172,11 @@ function getResults($run,$event)
|
|||||||
$url = "https://www.dognow.at/ergebnisse/pdf.php?lauf=$run&event=$event";
|
$url = "https://www.dognow.at/ergebnisse/pdf.php?lauf=$run&event=$event";
|
||||||
if(!file_exists('tmp/results/' . $event . '-' . $run . '.pdf'))
|
if(!file_exists('tmp/results/' . $event . '-' . $run . '.pdf'))
|
||||||
file_put_contents('tmp/results/' . $event . '-' . $run . '.pdf',file_get_contents($url));
|
file_put_contents('tmp/results/' . $event . '-' . $run . '.pdf',file_get_contents($url));
|
||||||
if($GLOBALS['db']->query("SELECT * FROM runs WHERE id = '$run' AND event = '$event'")->fetchArray() != false)
|
/*if($GLOBALS['db']->query("SELECT * FROM runs WHERE id = '$run' AND event = '$event'")->fetchArray() != false)
|
||||||
{
|
{
|
||||||
echo " [i] Skipping run $run in event $event\n";
|
echo " [i] Skipping run $run in event $event\n";
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
convertPDFtoCSV('tmp/results/' . $event . '-' . $run . '.pdf','tmp/csv/' . $event . '-' . $run . '.pdf.csv');
|
convertPDFtoCSV('tmp/results/' . $event . '-' . $run . '.pdf','tmp/csv/' . $event . '-' . $run . '.pdf.csv');
|
||||||
analyzeResultCSV('tmp/csv/' . $event . '-' . $run . '.pdf.csv',$run,$event);
|
analyzeResultCSV('tmp/csv/' . $event . '-' . $run . '.pdf.csv',$run,$event);
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
<td><?= $res['bew'] ?></td>
|
<td><?= $res['bew'] ?></td>
|
||||||
<td><?= $res['punkte'] ?></td>
|
<td><?= $res['punkte'] ?></td>
|
||||||
<td>
|
<td>
|
||||||
<form id="tournament_import" hx-post="/tournaments/add" hx-encoding="multipart/form-data">
|
<form id="tournament_import" hx-post="/tournaments/add" hx-encoding="multipart/form-data" hx-target="#main">
|
||||||
<input type="hidden" name="tournament_name" value="<?= $res['event'] ?>">
|
<input type="hidden" name="tournament_name" value="<?= $res['event'] ?>">
|
||||||
<input type="hidden" name="tournament_date" value="<?= date("d.m.Y", strtotime($res['date'])) ?>">
|
<input type="hidden" name="tournament_date" value="<?= date("d.m.Y", strtotime($res['date'])) ?>">
|
||||||
<input type="hidden" name="tournament_run" value="<?= $res['run'] ?>">
|
<input type="hidden" name="tournament_run" value="<?= $res['run'] ?>">
|
||||||
|
@ -53,6 +53,7 @@ class Tournaments extends Page {
|
|||||||
$t->time = $_REQUEST['tournament_time'];
|
$t->time = $_REQUEST['tournament_time'];
|
||||||
$t->points = $_REQUEST['tournament_points'];
|
$t->points = $_REQUEST['tournament_points'];
|
||||||
$t->speed = $_REQUEST['tournament_speed'];
|
$t->speed = $_REQUEST['tournament_speed'];
|
||||||
|
var_dump($t->data);
|
||||||
$this->set('tournamentdata',$t->data);
|
$this->set('tournamentdata',$t->data);
|
||||||
$this->set('template','edit_tournament.html');
|
$this->set('template','edit_tournament.html');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user