Skip to content
Permalink
Browse files

Minor fixes

  • Loading branch information...
Marlamin committed Oct 7, 2019
1 parent 0fefb92 commit e5b17c59e2b4b83b35385164b7afd2ddab496b7c
Showing with 4 additions and 4 deletions.
  1. +3 −3 builds/scripts/updateGameData.php
  2. +1 −1 files/submitQueue.php
@@ -3,7 +3,7 @@
include("../../inc/config.php");
$q = $pdo->query("SELECT description FROM wow_buildconfig WHERE product = 'wowt' ORDER BY description DESC LIMIT 1");
$q = $pdo->query("SELECT description FROM wow_buildconfig WHERE product = 'wowt' AND ID > 1575 ORDER BY description DESC LIMIT 1");
$row = $q->fetch();
$rawdesc = str_replace("WOW-", "", $row['description']);
@@ -14,14 +14,14 @@
function importDB2($name, $outdir, $fields){
global $pdo;
$db2 = "https://wow.tools/api/export/?name=".$name."&build=".$outdir;
$db2 = "https://wow.tools/api/export/?name=".$name."&build=".$outdir."&t=".strtotime("now");
$csv = "/tmp/".$name.".csv";
if(file_exists($csv)){ unlink($csv); }
$outputdump = shell_exec("/usr/bin/curl ".escapeshellarg($db2)." -o ".escapeshellarg($csv)." 2>&1");
if(!file_exists($csv)){
echo "An error occured during ".$name." import: ".$outputdump;
}else{
echo " Writing ".$name."..";
echo " Writing ".$name." (".$outdir.")..";
$pdo->exec("
LOAD DATA LOCAL INFILE '".$csv."'
INTO TABLE `wowdata`.".$name."
@@ -84,7 +84,7 @@
<?php
$previousTime = '';
$cq = $pdo->prepare("SELECT filename FROM wow_rootfiles WHERE id = ?");
$suggestions = $pdo->query("SELECT * FROM wow_rootfiles_suggestions WHERE status = 'todo'")->fetchAll();
$suggestions = $pdo->query("SELECT * FROM wow_rootfiles_suggestions WHERE status = 'todo' ORDER BY submitted DESC")->fetchAll();
if(count($suggestions) == 0){
echo "There are currently no submitted files waiting for approval.";
}else{

0 comments on commit e5b17c5

Please sign in to comment.
You can’t perform that action at this time.