Enable duplicates to update seen-by's before being discarded
This commit is contained in:
@@ -6,7 +6,7 @@ use Illuminate\Console\Command;
|
||||
use Symfony\Component\HttpFoundation\File\File;
|
||||
|
||||
use App\Classes\FTN\Packet;
|
||||
use App\Models\Zone;
|
||||
use App\Models\System;
|
||||
|
||||
class PacketInfo extends Command
|
||||
{
|
||||
@@ -17,7 +17,7 @@ class PacketInfo extends Command
|
||||
*/
|
||||
protected $signature = 'packet:info'
|
||||
.' {pkt : Packet to process}'
|
||||
.' {zone? : Zone the packet is from}';
|
||||
.' {system? : Zone the packet is from}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -35,9 +35,9 @@ class PacketInfo extends Command
|
||||
public function handle()
|
||||
{
|
||||
$f = new File($this->argument('pkt'));
|
||||
$z = $this->argument('zone') ? Zone::where('zone_id',$this->argument('zone'))->singleOrFail() : NULL;
|
||||
$s = $this->argument('system') ? System::where('name',$this->argument('zone'))->singleOrFail() : NULL;
|
||||
|
||||
$pkt = Packet::open($f,$z);
|
||||
$pkt = Packet::open($f,$s);
|
||||
|
||||
$this->info(sprintf('Packet Type: %s',$pkt->type));
|
||||
$this->info(sprintf('From: %s to %s',$pkt->fftn,$pkt->tftn));
|
||||
|
Reference in New Issue
Block a user