Skip to content

Instantly share code, notes, and snippets.

public class SubscriptionManager
{
private int _subscribeGamesCount;
private ScanLoop _subscriptionLoop;
private ScanLoop _unSubscriptionLoop;
private readonly SDDPParser _sddpParser;
private readonly SDDPMapper _sddpMapper;
private readonly ScannerConfigurations _scannerConfigurations;
private readonly ScannerMapperConfigurations _scannerMapperConfigurations;
private readonly WebSocketConfigurations _webSocketConfigurations;
"WhiteListInnerPagesConfiguration" : {
"countryToLeaguesList" : {
"albania" : [
"superliga",
"albanian cup",
"super cup"
],
"algeria" : [
"ligue 1",
"algeria cup",
db.getCollection("Links").find({"_id":{"$in":["e7eb52a3-6263-4c14-9c4a-818eeba2e300",
"8f2ea2e0-e249-404d-b2fe-90cc0e1a609e",
"7a0e3aad-6281-4411-ba30-82fa3b62499a",
"e4709ca2-7575-4f0f-af26-d2716272117a",
"ef04a095-cb14-4388-8dc2-89754f77d4e9",
"1b9fc54c-c274-45ae-81f4-e45f4e88e063",
"9f29e31f-5ce8-4d57-b96d-b0ac3fe41fd4",
"ccef4347-8330-4a3d-a9a0-2b27c2632082",
"78c78640-c393-4811-9735-300218219e95",
"4d409a4e-46c8-4736-b917-c068b0e49be1",
using System.Collections.ObjectModel;
using System.Diagnostics;
using Common.Dtos;
using Common.Models;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
if (update.CreateGame && createGamePriority != DataSourcesDAL.EPriorityLevel.Ignore)
{
bool bWasDeleted = IsDeleted;
IsDeleted = false;
if (bWasDeleted && createGamePriority != DataSourcesDAL.EPriorityLevel.Neutral)
{
CreateUpdate(update, EUpdateTypes.NewGame);
GamesDal.UpdateGameLastUpdateTime(ID, DateTime.UtcNow);
if (UpdateSequence >= lngMinUpdateID)
{
bGetAllGames = false;
// Get the games and notifications
List<CGameDTO> arrGames = GetGamesUpdates(arrUpdates, UpdateSequence, LangID, TimeZone, groupCategory,
Countries, Competitions, Competitors, Games, StartDateRange, EndDateRange, FullGameCenter,
UserCountry, WithExpandedColumns, filtersRelationOperator, withExpandedStats);
var sportTypeIds = arrGames.Select(g => g.SportTypeID).Distinct().ToArray();
{
"_id" : "617a71d533b9d389791739d0",
"ScannerName" : "LSport.Push.Domain.Scanners.LSportPushRabbitMqInPlayScanner",
"LSportScanner.PushService.InPlay" : {
"Handler" : {
"SportTypes" : [
"football",
"basketball",
"tennis",
"ice hockey",
CREATE TABLE B
(
User_Id BIGINT,
Item_Id BIGINT,
Searches BIGINT,
Clicks BIGINT,
Ctr BIGINT,
Item_Id_Num BIGINT
);
public override bool Scan()
{
var mainScanTask = ScanMainPage();
var innerPagesScanTask = mainScanTask.ContinueWith(finishedTask => ScanGamePage()).Unwrap();
innerPagesScanTask.Wait();
return true;
}
str = "Id,name\\n1,Jessy\\n2,NULL\\n"
def removeNull(str):
splited = str.split(',')
toReturn = ','.join([word for word in splited if 'null' not in word.lower()])
return toReturn
print(removeNull(str))