diff --git a/app.py b/app.py index 09ad297..2b4277b 100644 --- a/app.py +++ b/app.py @@ -12,7 +12,7 @@ Features: - PostgreSQL database integration - Analytics dashboard for chat insights -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2025-11-23 """ diff --git a/audit_ai_service.py b/audit_ai_service.py index 7a66a2d..63b99b5 100644 --- a/audit_ai_service.py +++ b/audit_ai_service.py @@ -12,7 +12,7 @@ Obsługiwane typy audytów: Używa Gemini API (via gemini_service.py) do generowania analiz. -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-02-07 """ diff --git a/company_matcher.py b/company_matcher.py index bed0354..0c7813b 100644 --- a/company_matcher.py +++ b/company_matcher.py @@ -13,7 +13,7 @@ Multi-layer matching: 4. AI Insights tags (industry_tags, services_list from company_ai_insights) 5. PKD codes matching -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-03-28 """ diff --git a/competitor_monitoring_service.py b/competitor_monitoring_service.py index cf4708d..088674e 100644 --- a/competitor_monitoring_service.py +++ b/competitor_monitoring_service.py @@ -5,7 +5,7 @@ Competitor Monitoring Service for NordaBiz Discovers and monitors competitors via Google Places API. Tracks changes in ratings, reviews, and profile activity. -Author: NordaBiz Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-02-06 """ diff --git a/context_builder.py b/context_builder.py index d92bf46..f789208 100644 --- a/context_builder.py +++ b/context_builder.py @@ -17,7 +17,7 @@ Usage: user_context={"user_id": 5, "company_id": 12} ) -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-03-28 """ diff --git a/database.py b/database.py index a2aa345..443af25 100644 --- a/database.py +++ b/database.py @@ -19,7 +19,7 @@ Models: - AIUsageLog, AIUsageDaily, AIRateLimit: AI API usage monitoring - Announcement: Ogłoszenia i aktualności dla członków -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2025-11-23 Updated: 2026-01-11 (AI Usage Tracking) """ diff --git a/email_service.py b/email_service.py index 6ff716f..e8c001b 100644 --- a/email_service.py +++ b/email_service.py @@ -4,7 +4,7 @@ Norda Biznes - Email Service Sends emails via SMTP (OVH Zimbra). -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2025-12-25 """ diff --git a/feedback_learning_service.py b/feedback_learning_service.py index f3dc04c..7b30ee5 100644 --- a/feedback_learning_service.py +++ b/feedback_learning_service.py @@ -11,7 +11,7 @@ Features: - Provides curated seed examples for cold start - Caches learning context for performance -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-11 """ diff --git a/file_upload_service.py b/file_upload_service.py index 37d951f..6af984e 100644 --- a/file_upload_service.py +++ b/file_upload_service.py @@ -12,7 +12,7 @@ Features: - UUID-based filenames for security - Date-organized storage structure -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-10 """ diff --git a/gbp_audit_service.py b/gbp_audit_service.py index 3bf949e..9cfd83f 100644 --- a/gbp_audit_service.py +++ b/gbp_audit_service.py @@ -10,7 +10,7 @@ Google Business Profile completeness audit service with: Inspired by Localo.com audit features. -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-08 """ diff --git a/gemini_service.py b/gemini_service.py index affb80c..e55347a 100644 --- a/gemini_service.py +++ b/gemini_service.py @@ -10,7 +10,7 @@ Features: - Cost tracking - Safety settings configuration -Author: NordaBiz Team +Author: Maciej Pienczyn, InPi sp. z o.o. Updated: 2026-01-29 (Gemini 3 SDK migration) """ diff --git a/google_places_service.py b/google_places_service.py index 324816e..bd52b76 100644 --- a/google_places_service.py +++ b/google_places_service.py @@ -7,7 +7,7 @@ Uses the Places API (New) with field masks for efficient billing. API Reference: https://developers.google.com/maps/documentation/places/web-service/op-overview -Author: NordaBiz Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-02-06 """ diff --git a/it_audit_service.py b/it_audit_service.py index 7c0ce69..af2c78c 100644 --- a/it_audit_service.py +++ b/it_audit_service.py @@ -9,7 +9,7 @@ IT infrastructure audit service with: - Maturity level classification - Cross-company collaboration matching -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-09 """ diff --git a/krs_audit_service.py b/krs_audit_service.py index 63df3f1..15550ed 100644 --- a/krs_audit_service.py +++ b/krs_audit_service.py @@ -11,7 +11,7 @@ Downloads PDF documents from EKRS and extracts complete company data: - Financial reports: filing dates - Representation rules -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-13 """ diff --git a/memory_service.py b/memory_service.py index 304c2eb..d9753bc 100644 --- a/memory_service.py +++ b/memory_service.py @@ -10,7 +10,7 @@ Features: - Format memory for injection into AI prompts - CRUD operations for user memory facts -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. """ import json diff --git a/norda_knowledge_service.py b/norda_knowledge_service.py index 6f6713d..244f191 100644 --- a/norda_knowledge_service.py +++ b/norda_knowledge_service.py @@ -10,7 +10,7 @@ Builds and maintains a knowledge base for Norda GPT from: PRIVACY: User questions (role='user') are NEVER added to the knowledge base. Only AI responses (role='assistant') containing public company facts are included. -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-28 """ diff --git a/nordabiz_chat.py b/nordabiz_chat.py index 2c812ce..f768192 100644 --- a/nordabiz_chat.py +++ b/nordabiz_chat.py @@ -12,7 +12,7 @@ Features: - Full conversation history tracking - Cost tracking per message -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2025-11-23 """ diff --git a/scripts/add_grill_event.py b/scripts/add_grill_event.py new file mode 100644 index 0000000..86c6055 --- /dev/null +++ b/scripts/add_grill_event.py @@ -0,0 +1,82 @@ +#!/usr/bin/env python3 +"""Add Grill Integracyjny event to NordaBiz calendar.""" +import os +import sys + +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + +from dotenv import load_dotenv +load_dotenv(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '.env')) + +from datetime import date, time +from database import SessionLocal, NordaEvent + +DESCRIPTION = """

Szanowni Państwo,
+z przyjemnością zapraszamy do udziału w Grillu Integracyjnym Izby Norda.

+ +

Podczas wydarzenia zapewniamy przestrzeń do swobodnych rozmów, integracji oraz budowania relacji biznesowych w mniej formalnej atmosferze.

+ +

Na uczestników czekać będzie:

+ + +

Koszt udziału:

+ + +

Serdecznie zapraszamy do udziału wraz z osobami towarzyszącymi oraz gośćmi.

+ +

Wpłaty:

+

Przelew na konto Izby: KBS 69 8350 0004 0000 0111 2000 0010 (tytuł: grill)
+lub gotówka w biurze Norda (godz. 8:00–14:00).

+ +

Kontakt: Magdalena Klóska, tel: 729-716-400

""" + + +def main(): + db = SessionLocal() + try: + # Check if event already exists + existing = db.query(NordaEvent).filter( + NordaEvent.title.ilike('%grill%integracyjny%'), + NordaEvent.event_date == date(2026, 5, 16) + ).first() + + if existing: + print(f"Event already exists: ID={existing.id}, title='{existing.title}'") + return + + event = NordaEvent( + title='Grill Integracyjny Izby Norda', + description=DESCRIPTION, + event_date=date(2026, 5, 16), + time_start=time(14, 0), + event_type='networking', + access_level='public', + location='Kurkowe Bractwo Strzeleckie, ul. Strzelecka 9, Wejherowo', + location_url='https://maps.app.goo.gl/QFbNxBpDfnYvxZYx7', + is_featured=True, + created_by=1, # admin + source='manual', + organizer_name='Norda Biznes', + organizer_email='biuro@norda-biznes.info', + ) + + db.add(event) + db.commit() + print(f"Event created: ID={event.id}, title='{event.title}', date={event.event_date}") + except Exception as e: + db.rollback() + print(f"Error: {e}") + sys.exit(1) + finally: + db.close() + + +if __name__ == '__main__': + main() diff --git a/scripts/competitor_monitor_cron.py b/scripts/competitor_monitor_cron.py index 14552ef..ca8b2f0 100644 --- a/scripts/competitor_monitor_cron.py +++ b/scripts/competitor_monitor_cron.py @@ -14,7 +14,7 @@ Usage: Cron entry (weekly, Sunday 3 AM): 0 3 * * 0 cd /var/www/nordabiznes && /var/www/nordabiznes/venv/bin/python3 scripts/competitor_monitor_cron.py >> /var/log/nordabiznes/competitor_monitor.log 2>&1 -Author: NordaBiz Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-02-06 """ diff --git a/scripts/generate_audit_report.py b/scripts/generate_audit_report.py index 36df9d6..4130161 100644 --- a/scripts/generate_audit_report.py +++ b/scripts/generate_audit_report.py @@ -14,7 +14,7 @@ Usage: python generate_audit_report.py --all python generate_audit_report.py --company-id 26 --type social -Author: NordaBiz Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-02-06 """ diff --git a/scripts/pagespeed_client.py b/scripts/pagespeed_client.py index b77d18e..0420508 100644 --- a/scripts/pagespeed_client.py +++ b/scripts/pagespeed_client.py @@ -14,7 +14,7 @@ Usage: client = GooglePageSpeedClient() result = client.analyze_url('https://example.com') -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2026-01-08 """ diff --git a/scripts/seo_analyzer.py b/scripts/seo_analyzer.py index ab05633..3a2ad70 100644 --- a/scripts/seo_analyzer.py +++ b/scripts/seo_analyzer.py @@ -29,7 +29,7 @@ Usage: checker = TechnicalSEOChecker() tech_result = checker.check_url('https://example.com') -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2026-01-08 """ diff --git a/scripts/seo_audit.py b/scripts/seo_audit.py index acf8704..a1e9d8f 100644 --- a/scripts/seo_audit.py +++ b/scripts/seo_audit.py @@ -24,7 +24,7 @@ Exit codes: 4 - Database connection error 5 - API quota exceeded -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2026-01-08 """ diff --git a/scripts/seo_report_generator.py b/scripts/seo_report_generator.py index 768f3b4..db96a6d 100644 --- a/scripts/seo_report_generator.py +++ b/scripts/seo_report_generator.py @@ -16,7 +16,7 @@ Output: - HTML: Styled, standalone reports suitable for viewing in browsers - JSON: Machine-readable exports for integration with other tools -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2026-01-08 """ diff --git a/scripts/simulate_model_comparison.py b/scripts/simulate_model_comparison.py index 4eafb83..8df8913 100644 --- a/scripts/simulate_model_comparison.py +++ b/scripts/simulate_model_comparison.py @@ -7,7 +7,7 @@ Simulates conversations with different Gemini models for comparison. Usage: python scripts/simulate_model_comparison.py -Author: NordaBiz Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-29 """ diff --git a/scripts/social_media_audit.py b/scripts/social_media_audit.py index 849d649..b92d881 100644 --- a/scripts/social_media_audit.py +++ b/scripts/social_media_audit.py @@ -17,7 +17,7 @@ Usage: python social_media_audit.py --batch 1-10 python social_media_audit.py --all -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2025-12-29 """ diff --git a/scripts/test_collaboration_matching.py b/scripts/test_collaboration_matching.py index 61510a3..c4d5527 100644 --- a/scripts/test_collaboration_matching.py +++ b/scripts/test_collaboration_matching.py @@ -18,7 +18,7 @@ Requirements: - PostgreSQL DEV database running on localhost:5433 - IT audit tables created (run migration first) -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-09 """ diff --git a/scripts/website_content_updater.py b/scripts/website_content_updater.py index 7f9a2b5..9b1a480 100644 --- a/scripts/website_content_updater.py +++ b/scripts/website_content_updater.py @@ -27,7 +27,7 @@ Exit codes: 4 - Błąd bazy danych 5 - Błąd API Gemini -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2026-02-01 """ diff --git a/security_service.py b/security_service.py index 8cbe61a..f1f548f 100644 --- a/security_service.py +++ b/security_service.py @@ -8,7 +8,7 @@ Security utilities for NordaBiz platform: - GeoIP blocking (block high-risk countries: RU, CN, KP, IR, BY, SY, VE, CU) - 2FA (TOTP) helpers -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-14 """ diff --git a/sensitive_data_service.py b/sensitive_data_service.py index f89393c..4d951d1 100644 --- a/sensitive_data_service.py +++ b/sensitive_data_service.py @@ -13,7 +13,7 @@ Detected data types: - Passwords (contextual detection) - Phone numbers (optional) -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-28 """ diff --git a/services/document_upload_service.py b/services/document_upload_service.py index e472c75..1000b9c 100644 --- a/services/document_upload_service.py +++ b/services/document_upload_service.py @@ -12,7 +12,7 @@ Features: - Date-organized storage structure - Protected storage outside webroot -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-02-03 """ diff --git a/smart_router.py b/smart_router.py index 7970fb3..15cbc43 100644 --- a/smart_router.py +++ b/smart_router.py @@ -5,7 +5,7 @@ Classifies query complexity and decides which data categories to load and which AI model to use. Provides fast keyword-based routing with AI-powered fallback when keyword matching is uncertain. -Author: NordaBiz Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-03-28 """ diff --git a/tests/test_it_audit_collaboration.py b/tests/test_it_audit_collaboration.py index a3f04a2..373c2fd 100644 --- a/tests/test_it_audit_collaboration.py +++ b/tests/test_it_audit_collaboration.py @@ -12,7 +12,7 @@ Test cases: 5. Collective purchasing matching (similar size) 6. Knowledge sharing matching (similar tech stack) -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-09 """ diff --git a/tests/test_seo_audit.py b/tests/test_seo_audit.py index dcff784..884116e 100644 --- a/tests/test_seo_audit.py +++ b/tests/test_seo_audit.py @@ -13,7 +13,7 @@ Run tests: cd tests python -m pytest test_seo_audit.py -v -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2026-01-08 """ diff --git a/tests/test_social_media_audit.py b/tests/test_social_media_audit.py index fab5498..d6d881a 100644 --- a/tests/test_social_media_audit.py +++ b/tests/test_social_media_audit.py @@ -13,7 +13,7 @@ Run tests: cd tests python -m pytest test_social_media_audit.py -v -Author: Claude Code +Author: Maciej Pienczyn, InPi sp. z o.o. Date: 2026-01-08 """ diff --git a/twitter_service.py b/twitter_service.py index 2563b49..50b81d9 100644 --- a/twitter_service.py +++ b/twitter_service.py @@ -8,7 +8,7 @@ with guest token authentication. No paid API key required. Note: This uses Twitter's internal API with guest tokens. Rate limits apply (~50 requests per 15 minutes per IP). -Author: NordaBiz Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-03-12 """ diff --git a/verify_all_companies_data.py b/verify_all_companies_data.py index 39398bc..007a591 100644 --- a/verify_all_companies_data.py +++ b/verify_all_companies_data.py @@ -5,7 +5,7 @@ Verify ALL Companies Data - 100% Accuracy Check Porównuje dane w bazie z https://norda-biznes.info dla KAŻDEJ firmy. Identyfikuje rozbieżności i generuje raport korekt. -Author: Norda Biznes Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2025-11-24 """ diff --git a/youtube_service.py b/youtube_service.py index 81a7329..84d6bf4 100644 --- a/youtube_service.py +++ b/youtube_service.py @@ -7,7 +7,7 @@ Uses the YouTube Data API v3 with the same Google API key as Places API. API Reference: https://developers.google.com/youtube/v3/docs/channels -Author: NordaBiz Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-02-08 """ diff --git a/zopk_news_service.py b/zopk_news_service.py index 5833478..cb69a05 100644 --- a/zopk_news_service.py +++ b/zopk_news_service.py @@ -15,7 +15,7 @@ Cross-verification: - 2 sources → pending with higher confidence - 3+ sources → auto_approved (verified automatically) -Author: NordaBiz Development Team +Author: Maciej Pienczyn, InPi sp. z o.o. Created: 2026-01-11 """