Skip to content

Instantly share code, notes, and snippets.

[
{
"insertId": "t56kj4f6hg9qq",
"jsonPayload": {
"loggerName": "RequestLogger",
"res": {
"body": {
"errors": [
"Could not find user with specified CPF/CNPJ"
],
{"lastUpload":"2020-08-26T18:06:35.700Z","extensionVersion":"v3.4.3"}
# -*- coding: utf-8 -*-
import scrapy
import MySQLdb
from scrapy.utils.response import open_in_browser
from datetime import datetime, timedelta
class LoginiclassSpider(scrapy.Spider):
name = 'loginIclass'
SELECT
chamado.cdchamado as 'COD. CHAMADO',
UPPER(usuario_abertura.nome) as 'USU. ABERTURA',
UPPER(usuario_fechamento.nome) as 'USU. FECHAMENTO',
chamado.status as 'STATUS CHAMADO',
tipo_chamado.descricao as 'TIPO CHAMADO',
chamado.dthi as 'DATA ABERTURA',
chamado.dthf as 'DATA FECHAMENTO'
FROM chamado
INNER JOIN usuario usuario_fechamento on usuario_fechamento.cdusuario = chamado.cdusuariof
public function index() {
$this->validate($request, [
"equipmentType" => 'bail|required|in:pac,cto,roteamento,ponto|string',
"equipmentId" => [
"required",
Rule::exists($request->get('equipmentType')->where(function ($query) use ($request) {
$equipmentType = $request->get('equipmentType');
if($equipmentType === 'pac') {
$column = 'cdpac'
} else if ($equipmentType === 'cto') {
<?php
namespace App\Http\Controllers;
use function GuzzleHttp\Psr7\str;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class cobrancaController extends Controller
{
private function getDD($codcli)
{
"data": [
{
"points": [
0.0430421,
-51.0679453
],
"distancia": {
"text": "0.1 km",
"value": 106
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:v1='http://v1.service.ws.activiafs.activia.com.br/'>
<soapenv:Header/>
<soapenv:Body>
<v1:buscarDisponibilidade>
<buscarDisponibilidadeIn>
<endereco>
<codigoEndereco>68900-095</codigoEndereco>
<codigoCliente>pacSTN127103</codigoCliente>
<logradouro>Av. Ataíde Teive, 1233 - Central, Macapá - AP, 68900-095, Brazil</logradouro>
<cep>68900-095</cep>
class MyAdminSite(AdminSite, ModelAdmin):
def index(self, request, extra_context=None):
"""
Display the main admin index page, which lists all of the installed
apps that have been registered in this site.
"""
app_list = self.get_app_list(request)
client_count = Client.objects.count()
device_count = Device.objects.count()
identification_count = Identifications.objects.count()
@instplanet
instplanet / Description
Created October 11, 2018 02:21
Target WSGI script '/var/www/sentinela_site/sentinela/wsgi.py' cannot be loaded as Python module
# Python Version: Python3
# Django Version: 2.1
# Server version: Apache/2.4.18 (Ubuntu)
# My requirements.txt
diff-match-patch==20121119
Django==2.1.1
django-ajax-selects==1.7.1
django-crispy-forms==1.7.2
django-filter==2.0.0