Code Monkey home page Code Monkey logo

ootp-manager's Introduction

Hi there ๐Ÿ‘‹

Visitor Count

ootp-manager's People

Watchers

 avatar

ootp-manager's Issues

Load snapshot data from export

Create snapshot

  • Loading the Snapshot will ask for the date of Snapshot (as far as I know this isn't in the export)
  • This then needs to create the Snapshot in the DB

Loading snapshot data

  • Ratings will need to be loaded and linked to Players and the Snapshot
  • Statistics will need to be loaded and linked to Players and the Snapshot
  • Misc info will need to be loaded and linked to Players and the Snapshot

Upsert new players from export

When a new snapshot is loaded with Players that are not already in a snapshot, they will need to be added to the DB. Obviously, we don't want to duplicate players that are already in the DB as well.

Load Players from export

Need a script that will be able to loads players from an OOTP report HTML table.

Getting the table will be a bit awkward as the table we want is nested inside another table:

<body class="ext_bg">
    <table cellspacing="0" cellpadding="0" align="center" width="968px">
        <tr>
            <td class="boxtitle">
                Player List
            </td>
	</tr>		
        <tr>
            <td>
                <table cellspacing="0" cellpadding="0" class="data sortable" width="968px">

Pandas will be able the HTML table into a data frame, and from where it will be a case of inserting the Player data into the DB.

Player Data: Player information that will not change across snapshots, e.g. First Name, Last Name, Date of Birth, etc.

View for players list

Basic list of Players with the following info:

From Player table

  • First Name
  • Last Name
  • Age (worked out from latest snapshot date)

From Snapshot data

  • Current position
  • Important ratings
  • Level

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.